Fixed WAR, C18, PAL00, UST set, added/fixed primitives, improved Android downloader, implemented Foretell ability, improved castcard keyword, improved "can play" restriction, improved primitives parsed in order to allow the nesting of transforms, ability$! reveal, scry, pay, grant keywords.

This commit is contained in:
Vittorio Alfieri
2021-01-14 17:51:13 +01:00
parent 69885cf90a
commit 91d19e2852
19 changed files with 340 additions and 312 deletions

View File

@@ -524,6 +524,12 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
cd->unsecureSetTapped(1);
}
}
//Has been foretold
else if (attribute.find("foretold") != string::npos)
{
cd->foretellTurn = comparisonCriterion;
cd->foretoldComparisonMode = comparisonMode;
}
//Has been kicked
else if (attribute.find("kicked") != string::npos)
{
@@ -589,7 +595,7 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
cd->unsecuresetrecent(1);
}
}
else if (attribute.find("geared") != string::npos)
else if (attribute.find("geared") != string::npos || attribute.find("equipped") != string::npos)
{
if (minus)
{
@@ -1002,7 +1008,7 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
ctc->setAllZones();
return ctc;
}
else if (typeName.compare("mystored") == 0)
else if (typeName.compare("mysource") == 0)
{
return NEW CardTargetChooser(observer, card->storedSourceCard, card, zones, nbzones);
}