Don't lapse eggs on the final wave of a run

pull/255/head
Flashfyre 2024-04-23 13:12:57 -04:00
parent 92caf6059b
commit 8f36bf1dcf
1 changed files with 1 additions and 1 deletions

View File

@ -3220,8 +3220,8 @@ export class VictoryPhase extends PokemonPhase {
this.scene.pushPhase(new BattleEndPhase(this.scene));
if (this.scene.currentBattle.battleType === BattleType.TRAINER)
this.scene.pushPhase(new TrainerVictoryPhase(this.scene));
this.scene.pushPhase(new EggLapsePhase(this.scene));
if (this.scene.gameMode.isEndless || !this.scene.gameMode.isWaveFinal(this.scene.currentBattle.waveIndex)) {
this.scene.pushPhase(new EggLapsePhase(this.scene));
if (this.scene.currentBattle.waveIndex % 10)
this.scene.pushPhase(new SelectModifierPhase(this.scene));
else if (this.scene.gameMode.isDaily) {