mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Added message to game log if a player redirects damage to a planeswalker.
This commit is contained in:
parent
967cb8c1b5
commit
92ecc766e9
2 changed files with 6 additions and 1 deletions
|
@ -82,6 +82,10 @@ public class PlaneswalkerRedirectionEffect extends RedirectionEffect<Planeswalke
|
|||
else {
|
||||
player.choose(Outcome.Damage, redirectTarget, null, game);
|
||||
}
|
||||
game.informPlayers(new StringBuilder(player.getName()).append(" redirects ")
|
||||
.append(event.getAmount())
|
||||
.append(" damage to ")
|
||||
.append(game.getPermanent(redirectTarget.getFirstTarget()).getName()).toString());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,8 +53,9 @@ public class DeclareBlockersStep extends Step<DeclareBlockersStep> {
|
|||
|
||||
@Override
|
||||
public boolean skipStep(Game game, UUID activePlayerId) {
|
||||
if (game.getCombat().noAttackers())
|
||||
if (game.getCombat().noAttackers()) {
|
||||
return true;
|
||||
}
|
||||
return super.skipStep(game, activePlayerId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue