Fix style issues

This commit is contained in:
NightKev 2025-06-06 14:47:44 -07:00 committed by GitHub
parent 6bf78cd732
commit 74ff6938e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2131,18 +2131,17 @@ export class PostIntimidateStatStageChangeAbAttr extends AbAttr {
override apply(pokemon: Pokemon, passive: boolean, simulated:boolean, cancelled: BooleanHolder, args: any[]): void {
if (simulated) {
cancelled.value = this.overwrites;
return
return;
}
const newStatStageChangePhase = 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)
globalScene.prependToPhase(newStatStageChangePhase, MovePhase);
} else if (globalScene.findPhase(m => m instanceof SwitchSummonPhase)) {
globalScene.prependToPhase(newStatStageChangePhase, SwitchSummonPhase)
globalScene.prependToPhase(newStatStageChangePhase, SwitchSummonPhase);
} else {
globalScene.pushPhase(newStatStageChangePhase);
}
cancelled.value = this.overwrites;
}
}