* Game: fixed priority lost on rollback (example: game skips to next step instead current step after a rollback error);

* Game: added game logs on rollback error;
This commit is contained in:
Oleg Agafonov 2021-08-18 10:58:43 +04:00
parent c8445c31a3
commit 1d60c2039b
4 changed files with 26 additions and 11 deletions

View file

@ -294,13 +294,14 @@ public abstract class PlayerImpl implements Player, Serializable {
this.human = player.isHuman();
this.life = player.getLife();
this.passed = player.isPassed();
// Don't restore more global states. If restored they are probably cause for unintended draws (https://github.com/magefree/mage/issues/1205).
// this.wins = player.hasWon();
// this.loses = player.hasLost();
// this.left = player.hasLeft();
// this.quit = player.hasQuit();
// Makes no sense to restore
// this.passed = player.isPassed();
// this.priorityTimeLeft = player.getPriorityTimeLeft();
// this.idleTimeout = player.hasIdleTimeout();
// this.timerTimeout = player.hasTimerTimeout();