mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Fix style issues
This commit is contained in:
parent
6bf78cd732
commit
74ff6938e3
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user