anyzone for cdaactive

should handle most of them except sewer nemesis, chameleon colossus
This commit is contained in:
Anthony Calosa
2015-11-06 19:47:30 +08:00
parent 1c8852a7a2
commit 71390046f5
3 changed files with 106 additions and 92 deletions
+6 -2
View File
@@ -3080,7 +3080,11 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
}
else if(s.find("cdaactive") != string::npos)
{
return NEW APowerToughnessModifier(observer, id, card, target, wppt,s,true);
MTGAbility * a = NEW APowerToughnessModifier(observer, id, card, target, wppt,s,true);
a->forcedAlive = 1;
a->forceDestroy = -1;
return a;
//return NEW APowerToughnessModifier(observer, id, card, target, wppt,s,true);
}
else
return NEW APowerToughnessModifier(observer, id, card, target, wppt,s,nonstatic);
@@ -3751,7 +3755,7 @@ int AbilityFactory::getAbilities(vector<MTGAbility *> * v, Spell * spell, MTGCar
if (dest == zones->exile)
{
magicText = card->magicTexts["exile"];
card->exileEffects = true;
card->exileEffects = true;
break;
}
if (dest == zones->library)