mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Fix that commander replacement effects work again, some cleanup after the changes of continuous effects and triggered abilities.
This commit is contained in:
parent
eb0544957b
commit
883021832e
1 changed files with 5 additions and 3 deletions
|
@ -88,6 +88,7 @@ public class CommanderReplacementEffect extends ReplacementEffectImpl {
|
|||
Player player = game.getPlayer(permanent.getOwnerId());
|
||||
if (player != null && player.chooseUse(Outcome.Benefit, "Move commander to command zone?", game)){
|
||||
boolean result = permanent.moveToZone(Zone.COMMAND, source.getSourceId(), game, false);
|
||||
game.informPlayers(player.getName() + " has moved his or her commander to the command zone");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
@ -105,8 +106,9 @@ public class CommanderReplacementEffect extends ReplacementEffectImpl {
|
|||
if (card != null) {
|
||||
Player player = game.getPlayer(card.getOwnerId());
|
||||
if (player != null && player.chooseUse(Outcome.Benefit, "Move commander to command zone?", game)){
|
||||
game.informPlayers(player.getName() + " moved his commander to the command zone instead");
|
||||
return card.moveToZone(Zone.COMMAND, source.getSourceId(), game, false);
|
||||
boolean result = card.moveToZone(Zone.COMMAND, source.getSourceId(), game, false);
|
||||
game.informPlayers(player.getName() + " has moved his or her commander to the command zone");
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue