rageform, lightform & cloudform support. withenchant is for only these
cards...
This commit is contained in:
Anthony Calosa
2017-03-10 14:14:02 +08:00
parent 8ea7b4d4cb
commit 37642c1f78
4 changed files with 41 additions and 19 deletions
+4 -1
View File
@@ -2898,7 +2898,8 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
//manifest
found = s.find("manifest");
if (found != string::npos)
{
{//for cloudform, rageform and lightform
bool withenchant = s.find("withenchant") != string::npos;
MTGAbility * a = NEW AManifest(observer, id, card, target);
a->oneShot = 1;
if(storedAndAbility.size())
@@ -2907,6 +2908,8 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
storedAndAbility.clear();
((AManifest*)a)->andAbility = parseMagicLine(stored, id, spell, card);
}
if(withenchant)
((AManifest*)a)->withenchant = true;
return a;
}