Fixed issues #1049 and #1050 opened by @ranger7271, improved imprint keywords, improved boast ability, added a new "hasability" keyword to check if a card has an ability or not.

This commit is contained in:
Vittorio Alfieri
2021-01-24 15:53:49 +01:00
parent 2b7baf7fc8
commit f6199719fd
8 changed files with 54 additions and 9 deletions
+7
View File
@@ -3165,6 +3165,13 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
{
MTGAbility * a = NEW AAImprint(observer, id, card, target);
a->oneShot = 1;
//andability
if(storedAndAbility.size())
{
string stored = storedAndAbility;
storedAndAbility.clear();
((AAImprint*)a)->andAbility = parseMagicLine(stored, id, spell, card);
}
return a;
}
}