mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Fix unnecessary pause when switching sides
This commit is contained in:
parent
c6e72245e6
commit
2daf2c826e
|
|
@ -2550,11 +2550,11 @@ var Battle = (function () {
|
|||
this.fastForwardTo(-1);
|
||||
} else {
|
||||
var turn = this.turn;
|
||||
var paused = this.paused;
|
||||
var playbackState = this.playbackState;
|
||||
this.reset(true);
|
||||
this.setSidesSwitched(!this.sidesSwitched);
|
||||
if (turn) this.fastForwardTo(turn);
|
||||
if (!paused) {
|
||||
if (this.playbackState !== 3) {
|
||||
this.play();
|
||||
} else {
|
||||
this.pause();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user