add some cards

also added countb() - countedbamount..
This commit is contained in:
Anthony Calosa
2017-03-19 21:57:59 +08:00
parent fa69686f0a
commit eb8370b86b
9 changed files with 91 additions and 23 deletions

View File

@@ -4118,6 +4118,14 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
return a;
}
vector<string> splitCountObjectB = parseBetween(s, "countb(", ")", false);
if (splitCountObjectB.size())
{
MTGAbility * a = NEW AACountObjectB(observer, id, card, card, NULL, splitCountObjectB[1]);
a->oneShot = 1;
return a;
}
//switch targest power with toughness
found = s.find("swap");
if (found != string::npos)