mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Don't count players who have lost or left the game as having lost life.
Fixes https://github.com/magefree/mage/issues/5153
This commit is contained in:
parent
fa2c008359
commit
e1fc060755
1 changed files with 1 additions and 1 deletions
|
@ -1853,7 +1853,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int loseLife(int amount, Game game, boolean atCombat) {
|
public int loseLife(int amount, Game game, boolean atCombat) {
|
||||||
if (!canLoseLife) {
|
if (!canLoseLife || !this.isInGame()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
GameEvent event = new GameEvent(GameEvent.EventType.LOSE_LIFE, playerId, playerId, playerId, amount, atCombat);
|
GameEvent event = new GameEvent(GameEvent.EventType.LOSE_LIFE, playerId, playerId, playerId, amount, atCombat);
|
||||||
|
|
Loading…
Reference in a new issue