mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* 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:
parent
22e558cd6f
commit
0c08784fe9
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue