Fixed/added primitives, added keyword to alter devotion count, added keyword to target cards with flashback cost, added "duplicatecounters(single)" keyword to add a counter of a specific kind already present on a permanent or a player.

This commit is contained in:
Vittorio Alfieri
2021-01-07 18:56:47 +01:00
parent 4c00dfb3b6
commit eaaa4d783b
13 changed files with 249 additions and 105 deletions

View File

@@ -542,6 +542,18 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
cd->unsecureSetHasKickerCost(1);
}
}
//Has flashback cost
else if (attribute.find("hasflashback") != string::npos)
{
if (minus)
{
cd->unsecureSetHasFlashbackCost(-1);
}
else
{
cd->unsecureSetHasFlashbackCost(1);
}
}
//Token
else if (attribute.find("token") != string::npos)
{