forked from External/mage
* Fixed that all spells could be cast by canceling the mana payment process.
This commit is contained in:
parent
1ef84278c2
commit
e679b1003d
3 changed files with 15 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue