Skip to content

Commit

Permalink
Fix endless retries (pagefaultgames#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavion3 authored May 28, 2024
1 parent 970e335 commit 17e4ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3893,7 +3893,7 @@ export class GameOverPhase extends BattlePhase {
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());
} else if (this.victory || !this.scene.enableRetries) {
this.handleGameOver();
Expand Down

0 comments on commit 17e4ede

Please sign in to comment.