* Fixed a bug that a commander on the stack could not be returned to command zone if an end turn effect resolved (e.g. from Sundial of the Infinite).

This commit is contained in:
LevelX2 2015-10-06 22:40:54 +02:00
parent 22e558cd6f
commit 0c08784fe9

View file

@ -108,6 +108,12 @@ public class CommanderReplacementEffect extends ReplacementEffectImpl {
} }
case GRAVEYARD: case GRAVEYARD:
case EXILED: case EXILED:
if (((ZoneChangeEvent) event).getFromZone().equals(Zone.STACK)) {
Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && commanderId.equals(spell.getSourceId())) {
return true;
}
}
if (commanderId.equals(event.getTargetId())) { if (commanderId.equals(event.getTargetId())) {
return true; return true;
} }