fixed bug causing AI never play a card there are one or more cards in graveyard or other zones, fixed and improved removemana ability, fixed/added primitives.

This commit is contained in:
Vittorio Alfieri
2020-12-30 17:52:06 +01:00
parent 1f98173197
commit 1444ed6b7c
6 changed files with 330 additions and 198 deletions

View File

@@ -3675,7 +3675,10 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
if (splitRemove.size())
{
Targetable * t = spell? spell->getNextTarget() : NULL;
MTGAbility *a = NEW AARemoveMana(observer, id, card, t, splitRemove[1], who);
bool forceclean = false;
if(s.find("forceclean")!=string::npos)
forceclean = true;
MTGAbility *a = NEW AARemoveMana(observer, id, card, t, splitRemove[1], who, forceclean);
a->oneShot = 1;
return a;
}