From 9a04fb57cb7cd4ed0ac3ca5e1b0aa23277c3394b Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 25 Jul 2013 15:40:46 +0200 Subject: [PATCH] Added a player lost and player won message to the game log. --- Mage/src/mage/players/PlayerImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mage/src/mage/players/PlayerImpl.java b/Mage/src/mage/players/PlayerImpl.java index 0973a9abf88..f8f45afed45 100644 --- a/Mage/src/mage/players/PlayerImpl.java +++ b/Mage/src/mage/players/PlayerImpl.java @@ -1317,6 +1317,7 @@ public abstract class PlayerImpl> implements Player, Ser //20100423 - 603.9 if (!this.wins) { game.fireEvent(GameEvent.getEvent(GameEvent.EventType.LOST, null, null, playerId)); + game.informPlayers(new StringBuilder(this.getName()).append(" has lost the game.").toString()); } if (!hasLeft()) { game.leave(playerId); @@ -1350,6 +1351,7 @@ public abstract class PlayerImpl> implements Player, Ser } } if (opponentsAlive == 0) { + game.informPlayers(new StringBuilder(this.getName()).append(" has won the game").toString()); this.wins = true; game.end(); }