mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +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;
|
||||
}
|
||||
}
|
||||
|
@ -104,9 +105,10 @@ 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);
|
||||
if (player != null && player.chooseUse(Outcome.Benefit, "Move commander to command zone?", game)){
|
||||
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