added new functionality to AAMover...

you can now do 
moveto(targetzone) and((ability)) 
moveto(mybatlefield) and((transforms((zombie,black)) forever))
This commit is contained in:
omegablast2002@yahoo.com
2011-09-21 14:06:32 +00:00
parent ab7eb1b93e
commit 11095f3339
3 changed files with 48 additions and 2 deletions

View File

@@ -1542,6 +1542,14 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
MTGAbility * a = NEW AAMover(id, card, target, splitMove[1]);
a->oneShot = 1;
if(s.find("and(") != string::npos)
{
vector<string> splitAnd = parseBetween(s, "and((", "))");
if(splitAnd.size())
{
((AAMover*)a)->andAbility = parseMagicLine(splitAnd[1], id, spell, card);
}
}
return a;
}