From e8bc2fb736d4bf04a683156fec8002ff54df522b Mon Sep 17 00:00:00 2001 From: dobin Date: Thu, 5 Jun 2025 18:40:02 +0900 Subject: [PATCH] [Bug] Fix rattled speed stat increase delay --- src/data/abilities/ability.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index 8f5f267f7ef..5ccce2b3c11 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -2130,7 +2130,12 @@ export class PostIntimidateStatStageChangeAbAttr extends AbAttr { override apply(pokemon: Pokemon, passive: boolean, simulated:boolean, cancelled: BooleanHolder, args: any[]): void { if (!simulated) { - globalScene.pushPhase(new StatStageChangePhase(pokemon.getBattlerIndex(), false, this.stats, this.stages)); + const newStatStageChangePhase = new StatStageChangePhase(pokemon.getBattlerIndex(), false, this.stats, this.stages) + if(globalScene.findPhase(m => m instanceof MovePhase)){ + globalScene.prependToPhase(newStatStageChangePhase, MovePhase) + }else { + globalScene.pushPhase(newStatStageChangePhase); + } } cancelled.value = this.overwrites; }