mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Added gain life info to game log.
This commit is contained in:
parent
88d8c30b6c
commit
4cad29f50a
1 changed files with 1 additions and 0 deletions
|
@ -1301,6 +1301,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
|
|||
GameEvent event = new GameEvent(GameEvent.EventType.GAIN_LIFE, playerId, playerId, playerId, amount, false);
|
||||
if (!game.replaceEvent(event)) {
|
||||
this.life += event.getAmount();
|
||||
game.informPlayers(new StringBuilder(this.getName()).append(" gains ").append(event.getAmount()).append(" life").toString());
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.GAINED_LIFE, playerId, playerId, playerId, event.getAmount()));
|
||||
return event.getAmount();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue