fixed a crash that was happening when ai would try to play a card like wurmcalling.
This commit is contained in:
@@ -1747,11 +1747,11 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
int power, toughness;
|
int power, toughness;
|
||||||
if (!spt.find("X/X") || !spt.find("x/x"))
|
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"))
|
if (!spt.find("XX/XX") || !spt.find("xx/xx"))
|
||||||
{
|
{
|
||||||
value = spell->computeXX(card);
|
value = card->XX;
|
||||||
}
|
}
|
||||||
parsePowerToughness(spt, &power, &toughness);
|
parsePowerToughness(spt, &power, &toughness);
|
||||||
string sabilities = s.substr(end + 1);
|
string sabilities = s.substr(end + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user