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

This commit is contained in:
Flashfyre committed 2024-04-23 13:12:57 -04:00
1 parent 92caf6059b
commit 8f36bf1dcf
1 file changed
+1 -1
+1 -1
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) {