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:
LevelX2 2013-06-02 09:37:17 +02:00
parent 4f291eb05a
commit ba21f4799f

View file

@ -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));
}