Fix endless retries (#1465)

This commit is contained in:
Xavion3 2024-05-28 11:36:32 +10:00 committed by GitHub
parent 970e335fab
commit 17e4edeb8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3893,7 +3893,7 @@ export class GameOverPhase extends BattlePhase {
this.victory = true; this.victory = true;
} }
if (this.scene.gameMode.isEndless) { if (this.victory && this.scene.gameMode.isEndless) {
this.scene.ui.showDialogue(i18next.t("PGMmiscDialogue:ending_endless"), i18next.t("PGMmiscDialogue:ending_name"), 0, () => this.handleGameOver()); this.scene.ui.showDialogue(i18next.t("PGMmiscDialogue:ending_endless"), i18next.t("PGMmiscDialogue:ending_name"), 0, () => this.handleGameOver());
} else if (this.victory || !this.scene.enableRetries) { } else if (this.victory || !this.scene.enableRetries) {
this.handleGameOver(); this.handleGameOver();