diff --git a/src/data/battle-anims.ts b/src/data/battle-anims.ts index dd8f0d8abdf..7993f874c0c 100644 --- a/src/data/battle-anims.ts +++ b/src/data/battle-anims.ts @@ -803,10 +803,10 @@ export abstract class BattleAnim { targetSprite.pipelineData["tone"] = [ 0.0, 0.0, 0.0, 0.0 ]; targetSprite.setAngle(0); if (!this.isHideUser() && userSprite) { - this.user?.getSprite().setVisible(true); // using this.user to fix context loss due to isOppAnim swap (#481) + userSprite.setVisible(true); // using this.user to fix context loss due to isOppAnim swap (#481) } if (!this.isHideTarget() && (targetSprite !== userSprite || !this.isHideUser())) { - this.target?.getSprite().setVisible(true); // using this.target to fix context loss due to isOppAnim swap (#481) + targetSprite.setVisible(true); // using this.target to fix context loss due to isOppAnim swap (#481) } for (const ms of Object.values(spriteCache).flat()) { if (ms) {