Improved Kicker cards, now it's possible to target a specific card with kicker cost and handle any event connected to a kicker casting cost.

This commit is contained in:
valfieri
2020-10-03 16:54:17 +02:00
parent 1b320d5325
commit bf6439db00
9 changed files with 109 additions and 19 deletions

View File

@@ -481,8 +481,32 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
{
cd->unsecureSetTapped(1);
}
//Token
}
//Has been kicked
else if (attribute.find("kicked") != string::npos)
{
if (minus)
{
cd->unsecureSetKicked(-1);
}
else
{
cd->unsecureSetKicked(1);
}
}
//Has kicker cost
else if (attribute.find("haskicker") != string::npos)
{
if (minus)
{
cd->unsecureSetHasKickerCost(-1);
}
else
{
cd->unsecureSetHasKickerCost(1);
}
}
//Token
else if (attribute.find("token") != string::npos)
{
if (minus)
@@ -493,8 +517,8 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
{
cd->isToken = 1;
}
//put in its zone this turn
}
//put in its zone this turn
else if (attribute.find("fresh") != string::npos)
{
if (minus)