Added / fixed some primitives, updated missing cards by set list, added new "reconfigure" ability based on "equip" one.

This commit is contained in:
Vittorio Alfieri
2023-06-04 20:11:40 +02:00
parent 50251e460b
commit f8fc173e86
7 changed files with 199 additions and 62 deletions
+10 -1
View File
@@ -3644,7 +3644,16 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
if ((s.find("equipment") == string::npos) && (s.find("equipped") == string::npos)) // Fix a bug on parser when reading the substring "equip" with a different meaning.
return NEW AEquip(observer, id, card);
}
//Reconfiguration
found = s.find("reconfigure");
if (found != string::npos)
{
AEquip* a = NEW AEquip(observer, id, card);
a->isReconfiguration = true;
return a;
}
// TODO: deprecate this ability in favor of retarget
//Equipment (attach)
found = s.find("attach");