copy/flip limit

if the copy/flip is activated, it means it's already in the battlefield,
so "enters the battlefield" must not trigger...
This commit is contained in:
Anthony Calosa
2016-08-10 19:49:31 +08:00
parent 2422e72713
commit 0c124327de
7 changed files with 25 additions and 14 deletions

View File

@@ -2547,6 +2547,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
MTGAbility * a = NEW AACopier(observer, id, card, target);
a->oneShot = 1;
a->canBeInterrupted = false;
((AACopier*)a)->activated = activated;
//andability
if(storedAndAbility.size())
{
@@ -3393,12 +3394,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
}
if(card->getdoubleFaced() == "kamiflip")
{//old flip cards kamigawa
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats,true);
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats,true,false,activated);
return a;
}
else//regular transform
{
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats);
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats,false,false,activated);
return a;
}
}