Fix vouchers in endless mode

pull/14/head
Flashfyre 2023-12-31 23:19:06 -05:00
parent 83e9f6d784
commit bbf42f28fb
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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: