Merge origin/master

This commit is contained in:
LevelX2 2017-11-04 18:20:35 +01:00
commit a5e80d66f1

View file

@ -1751,7 +1751,9 @@ public abstract class PlayerImpl implements Player, Serializable {
if (!game.isSimulation()) { if (!game.isSimulation()) {
game.informPlayers(this.getLogName() + " loses " + event.getAmount() + " life"); game.informPlayers(this.getLogName() + " loses " + event.getAmount() + " life");
} }
if (amount > 0) {
game.fireEvent(new GameEvent(GameEvent.EventType.LOST_LIFE, playerId, playerId, playerId, amount, atCombat)); game.fireEvent(new GameEvent(GameEvent.EventType.LOST_LIFE, playerId, playerId, playerId, amount, atCombat));
}
return amount; return amount;
} }
return 0; return 0;