passing the storedcard for use by instants and sorceries with extracost in thier manacost, also fixed a parsing oversight with stored values parsing, "-" would throw off the value of s string parsed for stored by 1, returning 0 for these....this is corrected now.

This commit is contained in:
omegablast2002@yahoo.com
2012-04-05 11:24:57 +00:00
parent 5c67985c45
commit eabbbe3f77
4 changed files with 15 additions and 5 deletions

View File

@@ -292,6 +292,7 @@ Spell::~Spell()
int Spell::resolve()
{
MTGCardInstance * oldStored = source->storedCard;
if (!source->hasType(Subtypes::TYPE_INSTANT) && !source->hasType(Subtypes::TYPE_SORCERY) && source->name.size())
{
Player * p = source->controller();
@@ -305,7 +306,7 @@ int Spell::resolve()
source->backupTargets = backupTgt;
from = p->game->battlefield;
}
source->storedCard = oldStored;
//Play SFX
if (options[Options::SFXVOLUME].number > 0)
{