Switching battle tabs should honour the 'noanim' pref (#788)

This commit is contained in:
urkerab
2016-10-29 06:03:19 +01:00
committed by Guangcong Luo
parent 09271dada9
commit 3cb8aacb16

View File

@@ -92,7 +92,10 @@
},
focus: function () {
this.tooltips.hideTooltip();
if (this.battle.playbackState === 3) this.battle.play();
if (this.battle.playbackState === 3) {
this.battle.play();
if (Tools.prefs('noanim')) this.battle.fastForwardTo(-1);
}
ConsoleRoom.prototype.focus.call(this);
},
blur: function () {