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)); this.scene.pushPhase(new ModifierRewardPhase(this.scene, modifierTypes.GOLDEN_POKEBALL));
} }
if (this.scene.gameMode !== GameMode.CLASSIC && !(this.scene.currentBattle.waveIndex % 50)) { 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)); 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); success = this.setCursor(this.cursor - 1);
break; break;
case Button.DOWN: case Button.DOWN:
if (this.cursor < 4) if (this.cursor < 5)
success = this.setCursor(this.cursor + 1); success = this.setCursor(this.cursor + 1);
break; break;
case Button.LEFT: case Button.LEFT: