mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
Initializing player life and top card reveald state for new game so that the values from last game are not applied at the start of the new game of a match.
This commit is contained in:
parent
4f291eb05a
commit
ba21f4799f
1 changed files with 2 additions and 0 deletions
|
|
@ -281,6 +281,8 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
|
|||
this.passedAllTurns = false;
|
||||
this.canGainLife = true;
|
||||
this.canLoseLife = true;
|
||||
this.topCardRevealed = false;
|
||||
this.setLife(game.getLife(), game);
|
||||
game.getState().getWatchers().add(new BloodthirstWatcher(playerId));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue