fixed a crash that was happening when ai would try to play a card like wurmcalling.

This commit is contained in:
omegablast2002@yahoo.com
2011-02-08 20:25:41 +00:00
parent 4d28bdd925
commit 44fe3cffec
+2 -2
View File
@@ -1747,11 +1747,11 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
int power, toughness;
if (!spt.find("X/X") || !spt.find("x/x"))
{
value = spell->computeX(card);
value = card->X;
}
if (!spt.find("XX/XX") || !spt.find("xx/xx"))
{
value = spell->computeXX(card);
value = card->XX;
}
parsePowerToughness(spt, &power, &toughness);
string sabilities = s.substr(end + 1);