persist/undying fix
persist/undying wont trigger when there is a replacement effect for cards that goes to graveyard like leyline of the void. support for anafenza the foremost.
This commit is contained in:
@@ -2276,6 +2276,8 @@ int MTGPersistRule::receiveEvent(WEvent * event)
|
||||
if (e->from == p->game->inPlay)
|
||||
ok = 1;
|
||||
}
|
||||
if ((card->owner->game->battlefield->hasAbility(Constants::MYGRAVEEXILER)||card->owner->opponent()->game->battlefield->hasAbility(Constants::OPPGRAVEEXILER)) || ((card->owner->game->battlefield->hasAbility(Constants::MYGCREATUREEXILER)||card->owner->opponent()->game->battlefield->hasAbility(Constants::OPPGCREATUREEXILER) && card->isCreature())))
|
||||
ok = 0;
|
||||
if (!ok)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user