From bbf42f28fb13731d621d02d4314e19993e0ec528 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 31 Dec 2023 23:19:06 -0500 Subject: [PATCH] Fix vouchers in endless mode --- src/battle-phases.ts | 2 +- src/ui/egg-gacha-ui-handler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index da09732e2..34d54c088 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -2479,7 +2479,7 @@ export class VictoryPhase extends PokemonPhase { this.scene.pushPhase(new ModifierRewardPhase(this.scene, modifierTypes.GOLDEN_POKEBALL)); } if (this.scene.gameMode !== GameMode.CLASSIC && !(this.scene.currentBattle.waveIndex % 50)) { - this.scene.pushPhase(new ModifierRewardPhase(this.scene, !(this.scene.currentBattle.waveIndex % 250) ? modifierTypes.VOUCHER_PLUS : modifierTypes.VOUCHER)); + this.scene.pushPhase(new ModifierRewardPhase(this.scene, !(this.scene.currentBattle.waveIndex % 250) ? modifierTypes.VOUCHER_PREMIUM : modifierTypes.VOUCHER_PLUS)); this.scene.pushPhase(new AddEnemyBuffModifierPhase(this.scene)); } } diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index b7f59f2ff..acecc947a 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -562,7 +562,7 @@ export default class EggGachaUiHandler extends MessageUiHandler { success = this.setCursor(this.cursor - 1); break; case Button.DOWN: - if (this.cursor < 4) + if (this.cursor < 5) success = this.setCursor(this.cursor + 1); break; case Button.LEFT: