CDA works by using "cdaactive" keyword on PT changes. Instead of
granting bonus, we modify the orig power and toughness since they are
dynamic PT. cdaactive are for cards like maro, tarmogoyf, etc. To
Follow/To Do: Additional Tests and other bug fix
This commit is contained in:
Anthony Calosa
2015-09-15 06:35:07 +08:00
parent 59792b3456
commit 72aaa18a35
3 changed files with 124 additions and 26 deletions
+7 -2
View File
@@ -2629,7 +2629,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
int MaxOpponent = atoi(rampageParameters[1].c_str());
return NEW ARampageAbility(observer, id, card, power, toughness, MaxOpponent);
}
//evole
if (s.find("evolve") != string::npos)
{
@@ -2924,7 +2924,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
{
return NEW PTInstant(observer, id, card, target, wppt,s,nonstatic);
}
return NEW APowerToughnessModifier(observer, id, card, target, wppt,s,nonstatic);
else if(s.find("cdaactive") != string::npos)
{
return NEW APowerToughnessModifier(observer, id, card, target, wppt,s,true);
}
else
return NEW APowerToughnessModifier(observer, id, card, target, wppt,s,nonstatic);
}
return NEW PTInstant(observer, id, card, target, wppt,s,nonstatic);
}