mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
* Fixed that player turn counter was not reset if game was reset (e.g. Karn Liberated).
This commit is contained in:
parent
8e56d06121
commit
e93cd580dd
2 changed files with 7 additions and 1 deletions
|
|
@ -336,6 +336,10 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cast e.g. from Karn Liberated to restart the current game
|
||||
* @param game
|
||||
*/
|
||||
@Override
|
||||
public void init(Game game) {
|
||||
init(game, false);
|
||||
|
|
@ -359,6 +363,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
|
|||
this.timerTimeout = false;
|
||||
this.idleTimeout = false;
|
||||
|
||||
this.turns = 0;
|
||||
this.passed = false;
|
||||
this.passedTurn = false;
|
||||
this.passedAllTurns = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue