Fixed ONE, ONC, NEO and DMR dat file, added new primitives from ONC set, fixed primitives, improved Android downloader, updated missing card by set list, updated cards image url links, fixed a bug on parser when reading the substring "equip" with a different meaning.

This commit is contained in:
Vittorio Alfieri
2023-06-01 19:04:28 +02:00
parent d3deae3a6a
commit c0f2635990
11 changed files with 1616 additions and 87 deletions

View File

@@ -3641,7 +3641,8 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
found = s.find("equip");
if (found != string::npos)
{
return NEW AEquip(observer, id, card);
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);
}
// TODO: deprecate this ability in favor of retarget