Fix repeat Plains GLs not evolving first mons

This commit is contained in:
AJ Fontaine 2025-02-14 17:03:09 -05:00
parent 3fd5414f5c
commit 53084047ec
2 changed files with 5 additions and 4 deletions

View File

@ -830,7 +830,11 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
}
}
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId)) {
if ( // If evolutions shouldn't happen, add more cases here :)
!allowEvolving
|| !pokemonEvolutions.hasOwnProperty(this.speciesId)
|| globalScene.currentBattle.waveIndex === 20 && globalScene.gameMode.isClassic && globalScene.currentBattle.trainer
) {
return this.speciesId;
}

View File

@ -1166,9 +1166,6 @@ function getGymLeaderPartyTemplate() {
export function getRandomPartyMemberFunc(speciesPool: Species[], trainerSlot: TrainerSlot = TrainerSlot.TRAINER, ignoreEvolution: boolean = false, postProcess?: (enemyPokemon: EnemyPokemon) => void) {
return (level: number, strength: PartyMemberStrength) => {
let species = Utils.randSeedItem(speciesPool);
if (globalScene.gameMode.isClassic && globalScene.currentBattle.waveIndex === 20) {
ignoreEvolution = true;
}
if (!ignoreEvolution) {
species = getPokemonSpecies(species).getTrainerSpeciesForLevel(level, true, strength, globalScene.currentBattle.waveIndex);
}