diff --git a/src/data/battle-anims.ts b/src/data/battle-anims.ts index bed17fb0ebc..24212fd2fb5 100644 --- a/src/data/battle-anims.ts +++ b/src/data/battle-anims.ts @@ -880,6 +880,10 @@ export abstract class BattleAnim { targetSprite.pipelineData["tone"] = [0.0, 0.0, 0.0, 0.0]; targetSprite.setAngle(0); + // Remove animation event listeners to enable sprites to be freed. + userSprite.off("animationupdate"); + targetSprite.off("animationupdate"); + /** * This and `targetSpriteToShow` are used to restore context lost * from the `isOppAnim` swap. Using these references instead of `this.user`