From 6b036b112f54182487e9cabac878f1a8a53aeffe Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 19 Feb 2024 22:58:25 -0500 Subject: [PATCH] Give final boss consistent max IVs --- src/battle-phases.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle-phases.ts b/src/battle-phases.ts index 8b95decf5..a1ed4c757 100644 --- a/src/battle-phases.ts +++ b/src/battle-phases.ts @@ -435,6 +435,8 @@ export class EncounterPhase extends BattlePhase { else { const enemySpecies = this.scene.randomSpecies(battle.waveIndex, level, true); battle.enemyParty[e] = this.scene.addEnemyPokemon(enemySpecies, level, false, !!this.scene.getEncounterBossSegments(battle.waveIndex, level, enemySpecies)); + if (this.scene.currentBattle.battleSpec === BattleSpec.FINAL_BOSS) + battle.enemyParty[e].ivs = new Array(6).fill(31); this.scene.getParty().slice(0, !battle.double ? 1 : 2).reverse().forEach(playerPokemon => { applyAbAttrs(SyncEncounterNatureAbAttr, playerPokemon, null, battle.enemyParty[e]); });