mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Prevent wave 20 gym leader from evolving
This commit is contained in:
parent
20f8508d44
commit
fe0ce0e27f
@ -670,6 +670,9 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
||||
}
|
||||
|
||||
getTrainerSpeciesForLevel(level: number, allowEvolving: boolean = false, strength: PartyMemberStrength, currentWave: number = 0): Species {
|
||||
if (currentWave === 20) { //Don't allow first gym leader wave 20 to evolve their mons
|
||||
allowEvolving = false;
|
||||
}
|
||||
return this.getSpeciesForLevel(level, allowEvolving, true, strength, currentWave);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user