From cb51c51908e30c59b5c5511e3d12667c1fc037d6 Mon Sep 17 00:00:00 2001 From: Sean Yeh <109418+seanyeh@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:52:07 -0500 Subject: [PATCH] Fix side condition visual glitch in replays 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. --- play.pokemonshowdown.com/src/battle.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/play.pokemonshowdown.com/src/battle.ts b/play.pokemonshowdown.com/src/battle.ts index a5595832f1..a2f8237c38 100644 --- a/play.pokemonshowdown.com/src/battle.ts +++ b/play.pokemonshowdown.com/src/battle.ts @@ -3830,6 +3830,7 @@ export class Battle { if (turn === 0) { this.seeking = null; this.resetStep(); + this.scene.resetSideConditions(); this.scene.animationOn(); if (this.paused) this.subscription?.('paused'); return;