Generate new IV array using min value instead of using Math.max()

This commit is contained in:
NightKev 2025-04-26 21:13:03 -07:00
parent cf6a238593
commit 6a187a95df

View File

@ -7028,9 +7028,12 @@ export class EnemyPokemon extends Pokemon {
} }
if (this.hasTrainer() && globalScene.currentBattle) { if (this.hasTrainer() && globalScene.currentBattle) {
for (const index in this.ivs) { const { waveIndex } = globalScene.currentBattle;
this.ivs[index] = Math.max(this.ivs[index], Math.floor(globalScene.currentBattle.waveIndex / 10)); const ivs: number[] = [];
while (ivs.length < 6) {
ivs.push(this.randSeedIntRange(Math.floor(waveIndex / 10), 31));
} }
this.ivs = ivs;
} }
} }