Fix boss faint dialogue showing on party member faint
This commit is contained in:
parent
5ab628039d
commit
9633897a27
|
@ -2554,12 +2554,14 @@ export class FaintPhase extends PokemonPhase {
|
||||||
tryOverrideForBattleSpec(): boolean {
|
tryOverrideForBattleSpec(): boolean {
|
||||||
switch (this.scene.currentBattle.battleSpec) {
|
switch (this.scene.currentBattle.battleSpec) {
|
||||||
case BattleSpec.FINAL_BOSS:
|
case BattleSpec.FINAL_BOSS:
|
||||||
|
if (!this.player) {
|
||||||
const enemy = this.getPokemon();
|
const enemy = this.getPokemon();
|
||||||
if (enemy.formIndex) {
|
if (enemy.formIndex) {
|
||||||
this.scene.ui.showDialogue(battleSpecDialogue[BattleSpec.FINAL_BOSS].secondStageWin, enemy.name, null, () => this.doFaint(), null, true);
|
this.scene.ui.showDialogue(battleSpecDialogue[BattleSpec.FINAL_BOSS].secondStageWin, enemy.name, null, () => this.doFaint(), null, true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue