[Bug] Fix rattled speed stat increase delay

This commit is contained in:
dobin 2025-06-05 18:40:02 +09:00
parent fb6d6f5b69
commit e8bc2fb736

View File

@ -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;
}