From e1fc0607555dbf5966a75ec9306520bc41fd7f9d Mon Sep 17 00:00:00 2001 From: dilnu Date: Wed, 18 Jul 2018 21:07:23 -0400 Subject: [PATCH] Don't count players who have lost or left the game as having lost life. Fixes https://github.com/magefree/mage/issues/5153 --- Mage/src/main/java/mage/players/PlayerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/players/PlayerImpl.java b/Mage/src/main/java/mage/players/PlayerImpl.java index e7d32f56b3..0c5c860d1a 100644 --- a/Mage/src/main/java/mage/players/PlayerImpl.java +++ b/Mage/src/main/java/mage/players/PlayerImpl.java @@ -1853,7 +1853,7 @@ public abstract class PlayerImpl implements Player, Serializable { @Override public int loseLife(int amount, Game game, boolean atCombat) { - if (!canLoseLife) { + if (!canLoseLife || !this.isInGame()) { return 0; } GameEvent event = new GameEvent(GameEvent.EventType.LOSE_LIFE, playerId, playerId, playerId, amount, atCombat);