mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
Prevent trainer battles on the first wave of a new biome
This commit is contained in:
parent
96a15ccb0d
commit
8222d67408
@ -588,10 +588,11 @@ export default class BattleScene extends Phaser.Scene {
|
||||
if (battleType === undefined) {
|
||||
if (newWaveIndex > 10 && newWaveIndex % 20 === 10)
|
||||
newBattleType = BattleType.TRAINER;
|
||||
else {
|
||||
else if (newWaveIndex % 10 !== 1) {
|
||||
const trainerChance = this.arena.getTrainerChance();
|
||||
newBattleType = trainerChance && !Utils.randSeedInt(trainerChance) ? BattleType.TRAINER : BattleType.WILD;
|
||||
}
|
||||
} else
|
||||
newBattleType = BattleType.WILD;
|
||||
} else
|
||||
newBattleType = battleType;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user