mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-25 01:32:21 +02:00
Fix repeat Plains GLs not evolving first mons
This commit is contained in:
parent
3fd5414f5c
commit
53084047ec
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user