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

View File

@@ -953,6 +953,16 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
}
}
if (attribute.find("evictname") != string::npos && card->imprintedCards.size())
{
attributefound = 1;
cd->compareName = card->currentimprintName;
if (minus)
cd->nameComparisonMode = COMPARISON_UNEQUAL;
else
cd->nameComparisonMode = COMPARISON_EQUAL;
}
if (!attributefound)
{
//Abilities