* Fixed Rollback UI bug with ManaPool's autoPayment and autoPaymentRestricted (fixes #5002).

This commit is contained in:
LevelX2 2020-07-16 23:56:43 +02:00
parent 23087e6c23
commit e4ae2f3fec

View file

@ -318,6 +318,10 @@ public abstract class PlayerImpl implements Player, Serializable {
this.maxHandSize = player.getMaxHandSize();
this.maxAttackedBy = player.getMaxAttackedBy();
this.manaPool = player.getManaPool().copy();
// Restore user specific settings in case changed since state save
this.manaPool.setAutoPayment(this.getUserData().isManaPoolAutomatic());
this.manaPool.setAutoPaymentRestricted(this.getUserData().isManaPoolAutomaticRestricted());
this.turns = player.getTurns();
this.range = player.getRange();