Skip to content

Commit a711bf7

Browse files
authored
Fix side condition visual glitch in replays (#2269)
This commit resets the side conditions when restarting a replay. Without this fix, side conditions (such as Spikes) that were previously drawn no longer show up after a restart.
1 parent ec92955 commit a711bf7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

play.pokemonshowdown.com/src/battle.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3864,6 +3864,7 @@ export class Battle {
38643864
if (turn === 0) {
38653865
this.seeking = null;
38663866
this.resetStep();
3867+
this.scene.resetSideConditions();
38673868
this.scene.animationOn();
38683869
if (this.paused) this.subscription?.('paused');
38693870
return;

0 commit comments

Comments
 (0)