mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +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 {
|
override apply(pokemon: Pokemon, passive: boolean, simulated:boolean, cancelled: BooleanHolder, args: any[]): void {
|
||||||
if (simulated) {
|
if (simulated) {
|
||||||
cancelled.value = this.overwrites;
|
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)) {
|
if (globalScene.findPhase(m => m instanceof MovePhase)) {
|
||||||
globalScene.prependToPhase(newStatStageChangePhase, MovePhase)
|
globalScene.prependToPhase(newStatStageChangePhase, MovePhase);
|
||||||
} else if (globalScene.findPhase(m => m instanceof SwitchSummonPhase)) {
|
} else if (globalScene.findPhase(m => m instanceof SwitchSummonPhase)) {
|
||||||
globalScene.prependToPhase(newStatStageChangePhase, SwitchSummonPhase)
|
globalScene.prependToPhase(newStatStageChangePhase, SwitchSummonPhase);
|
||||||
} else {
|
} else {
|
||||||
globalScene.pushPhase(newStatStageChangePhase);
|
globalScene.pushPhase(newStatStageChangePhase);
|
||||||
}
|
}
|
||||||
|
|
||||||
cancelled.value = this.overwrites;
|
cancelled.value = this.overwrites;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user