* Fixed that all spells could be cast by canceling the mana payment process.

This commit is contained in:
LevelX2 2018-02-15 16:51:47 +01:00
parent 1ef84278c2
commit e679b1003d
3 changed files with 15 additions and 13 deletions

View file

@ -1190,11 +1190,9 @@ public abstract class PlayerImpl implements Player, Serializable {
}
protected void restoreState(int bookmark, String text, Game game) {
if (storedBookmark > -1) { // e.g. a turn rollback sets this to -1 so no more rollback of current action may be done
game.restoreState(bookmark, text);
if (storedBookmark >= bookmark) {
resetStoredBookmark(game);
}
game.restoreState(bookmark, text);
if (storedBookmark >= bookmark) {
resetStoredBookmark(game);
}
}