mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Merge branch 'master' of https://github.com/magefree/mage
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
commit
8dfb5f913d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue