From e697a78fc527941f1713a2c28797020e9f79f67d Mon Sep 17 00:00:00 2001 From: innerthunder <168692175+innerthunder@users.noreply.github.com> Date: Fri, 16 Aug 2024 17:02:05 -0700 Subject: [PATCH] Fix race condition in SwitchSummonPhase (#3588) --- src/phases.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 224f172b3e0..cafaa4bd02b 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1643,9 +1643,9 @@ export class SwitchSummonPhase extends SummonPhase { ease: "Sine.easeIn", scale: 0.5, onComplete: () => { - // 250ms delay on leaveField is necessary to avoid calling hideInfo() twice + // 300ms delay on leaveField is necessary to avoid calling hideInfo() twice // and double-animating the stats panel slideout - this.scene.time.delayedCall(250, () => pokemon.leaveField(!this.batonPass)); + this.scene.time.delayedCall(300, () => pokemon.leaveField(!this.batonPass)); this.scene.time.delayedCall(750, () => this.switchAndSummon()); } });