mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
fixed life loss triggers triggering off of 0 life
This commit is contained in:
parent
5a9671cbca
commit
cddae049d6
1 changed files with 3 additions and 1 deletions
|
@ -1751,7 +1751,9 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
if (!game.isSimulation()) {
|
||||
game.informPlayers(this.getLogName() + " loses " + event.getAmount() + " life");
|
||||
}
|
||||
game.fireEvent(new GameEvent(GameEvent.EventType.LOST_LIFE, playerId, playerId, playerId, amount, atCombat));
|
||||
if (amount > 0) {
|
||||
game.fireEvent(new GameEvent(GameEvent.EventType.LOST_LIFE, playerId, playerId, playerId, amount, atCombat));
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue