Skip to content

Commit

Permalink
Fix side condition visual glitch in replays (#2269)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seanyeh authored Feb 26, 2025
1 parent ec92955 commit a711bf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions play.pokemonshowdown.com/src/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3864,6 +3864,7 @@ export class Battle {
if (turn === 0) {
this.seeking = null;
this.resetStep();
this.scene.resetSideConditions();

Check failure on line 3867 in play.pokemonshowdown.com/src/battle.ts

View workflow job for this annotation

GitHub Actions / build (22.x)

Property 'resetSideConditions' does not exist on type 'BattleSceneStub'. Did you mean 'removeSideCondition'?
this.scene.animationOn();
if (this.paused) this.subscription?.('paused');
return;
Expand Down

0 comments on commit a711bf7

Please sign in to comment.