Improved kicker cards comparison criteria (now it's possible to search for a multi kicked card in stack), added a new castcard mode with multikicker option, added all Zendikar Risings primitives to borderline collection, changed in all primitives the restriction "kicker" with a new sintax "if paid(kicker) then" in order to fit with the new kicker logic comparison criteria and castcard option.

This commit is contained in:
valfieri
2020-10-10 02:44:57 +02:00
parent c4eb931192
commit a99eaac35d
10 changed files with 3348 additions and 294 deletions
+5 -13
View File
@@ -1488,14 +1488,8 @@ bool CardGui::FilterCard(MTGCard * _card,string filter)
//Has been kicked
else if (attribute.find("kicked") != string::npos)
{
if (minus)
{
cd.unsecureSetKicked(-1);
}
else
{
cd.unsecureSetKicked(1);
}
cd.kicked = comparisonCriterion;
cd.kickedComparisonMode = comparisonMode;
}
//Has kicker cost
else if (attribute.find("haskicker") != string::npos)
@@ -1648,27 +1642,25 @@ bool CardGui::FilterCard(MTGCard * _card,string filter)
//Power restrictions
cd.setPower(comparisonCriterion);
cd.powerComparisonMode = comparisonMode;
//Toughness restrictions
}
else if (attribute.find("toughness") != string::npos)
{
//Toughness restrictions
cd.setToughness(comparisonCriterion);
cd.toughnessComparisonMode = comparisonMode;
//zpos restrictions
}
else if (attribute.find("zpos") != string::npos)
{//using > or < don't have effect unless like this: >= or <= or =
//zpos restrictions
cd.zposition = comparisonCriterion;
cd.zposComparisonMode = comparisonMode;
//Manacost restrictions
}
else if (attribute.find("manacost") != string::npos)
{
//Manacost restrictions
cd.convertedManacost = comparisonCriterion;
cd.manacostComparisonMode = comparisonMode;
//Counter Restrictions
}
else
{
int attributefound = 0;