Fixed X costs not being properly reset with Word of Command rollback

This commit is contained in:
L_J 2018-06-07 16:49:10 +02:00 committed by GitHub
parent d19ca838ca
commit 323894118b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 36 deletions

View file

@ -339,6 +339,7 @@ public class ManaCostsImpl<T extends ManaCost> extends ArrayList<T> implements M
if (player != null) {
game.undo(playerId);
this.clearPaid();
this.setX(0);
player.getManaPool().restoreMana(pool.getPoolBookmark());
game.bookmarkState();
}