mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-27 02:32:21 +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 :)
|
if ( // If evolutions shouldn't happen, add more cases here :)
|
||||||
!allowEvolving
|
!allowEvolving
|
||||||
|| !pokemonEvolutions.hasOwnProperty(this.speciesId)
|
|| !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;
|
return this.speciesId;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user