Fix boss IVs rerolling after reload

pull/215/head
Flashfyre 2024-04-20 23:24:01 -04:00
parent 08988822db
commit ee6c3e8fbc
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ export default class BattleScene extends SceneBase {
if (OPP_SPECIES_OVERRIDE) if (OPP_SPECIES_OVERRIDE)
species = getPokemonSpecies(OPP_SPECIES_OVERRIDE); species = getPokemonSpecies(OPP_SPECIES_OVERRIDE);
const pokemon = new EnemyPokemon(this, species, level, trainerSlot, boss, dataSource); const pokemon = new EnemyPokemon(this, species, level, trainerSlot, boss, dataSource);
if (boss) { if (boss && !dataSource) {
const secondaryIvs = Utils.getIvsFromId(Utils.randSeedInt(4294967295)); const secondaryIvs = Utils.getIvsFromId(Utils.randSeedInt(4294967295));
for (let s = 0; s < pokemon.ivs.length; s++) for (let s = 0; s < pokemon.ivs.length; s++)