mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Apply lint
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
parent
3e1adaa015
commit
377f596778
@ -2131,11 +2131,11 @@ export class PostIntimidateStatStageChangeAbAttr extends AbAttr {
|
||||
override apply(pokemon: Pokemon, passive: boolean, simulated:boolean, cancelled: BooleanHolder, args: any[]): void {
|
||||
if (!simulated) {
|
||||
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)
|
||||
} else if(globalScene.findPhase(m => m instanceof SwitchSummonPhase)){
|
||||
} else if (globalScene.findPhase(m => m instanceof SwitchSummonPhase)) {
|
||||
globalScene.prependToPhase(newStatStageChangePhase, SwitchSummonPhase)
|
||||
}else {
|
||||
} else {
|
||||
globalScene.pushPhase(newStatStageChangePhase);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user