mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-25 09:42:20 +02:00
Add null check
This commit is contained in:
parent
5a11f57c00
commit
10752415de
@ -833,7 +833,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm implements Locali
|
||||
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
|
||||
|| globalScene.currentBattle?.waveIndex === 20 && globalScene.gameMode.isClassic && globalScene.currentBattle.trainer
|
||||
) {
|
||||
return this.speciesId;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user