changed some logic for getting the pre x without shellcasting(?) spell...the variable word "prex" now returns the difference between the cards cost and the curentmanapool...giving us the value of pre x.some cards might need updating, doc can confirm it....

This commit is contained in:
omegablast2002@yahoo.com
2011-09-21 20:27:29 +00:00
parent 15f0143a8f
commit 4419ed4637
7 changed files with 48 additions and 70 deletions

View File

@@ -168,8 +168,7 @@ int AbilityFactory::parseCastRestrictions(MTGCardInstance * card,Player * player
}
else if (i == 2)
{
Spell * spellCard = (Spell*)card;
WParsedInt * secondA = NEW WParsedInt(comparasion[2].c_str(),spellCard?spellCard:NULL,card);
WParsedInt * secondA = NEW WParsedInt(comparasion[2].c_str(),NULL,card);
secondAmount = secondA->getValue();
SAFE_DELETE(secondA);
}