Added / fixed primitives from NEO set, added "mytgtforced" target for equipments and auras, added "numofactivation" keyword to give PT according to how many time an ability has triggred (e.g. "Bronze Cudgels").

This commit is contained in:
Vittorio Alfieri
2023-06-22 18:39:11 +02:00
parent 797514521e
commit c2d78db724
5 changed files with 335 additions and 7 deletions

View File

@@ -65,7 +65,9 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta
if (found == 0)
{
MTGCardInstance * target = card->target;
if (ability) target = (MTGCardInstance *) (ability->target);
bool forced = (s.find("forced") != string::npos);
if (ability && !forced)
target = (MTGCardInstance *) (ability->target);
return NEW CardTargetChooser(observer, target, card);
};