Fixed some primitives, added new primitives from MAT set, improved filter for multicolored cards, added new keywords for handling multicolored cards.

This commit is contained in:
Vittorio Alfieri
2023-05-24 15:15:52 +02:00
parent 675705a6e5
commit 09f4c408cd
6 changed files with 292 additions and 32 deletions

View File

@@ -917,6 +917,12 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
}
}
else if (attribute.find("numofcols") != string::npos)
{
//Number of color restrictions
cd->numofColors = comparisonCriterion;
cd->numofColorsComparisonMode = comparisonMode;
}
else if (attribute.find("power") != string::npos)
{
//Power restrictions