From 9633897a2712273879f30a386dd6c02bad7b295a Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 29 Jan 2024 22:07:34 -0500 Subject: [PATCH] Fix boss faint dialogue showing on party member faint --- src/battle-phases.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 54e82b2a6..7de307fe6 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -2554,10 +2554,12 @@ export class FaintPhase extends PokemonPhase { tryOverrideForBattleSpec(): boolean { switch (this.scene.currentBattle.battleSpec) { case BattleSpec.FINAL_BOSS: - const enemy = this.getPokemon(); - if (enemy.formIndex) { - this.scene.ui.showDialogue(battleSpecDialogue[BattleSpec.FINAL_BOSS].secondStageWin, enemy.name, null, () => this.doFaint(), null, true); - return true; + if (!this.player) { + const enemy = this.getPokemon(); + if (enemy.formIndex) { + this.scene.ui.showDialogue(battleSpecDialogue[BattleSpec.FINAL_BOSS].secondStageWin, enemy.name, null, () => this.doFaint(), null, true); + return true; + } } }