mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 23:11:11 +00:00
Fix crash related to mega evolutions
This commit is contained in:
parent
70827420cd
commit
f671eda029
@ -313,7 +313,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm {
|
||||
}
|
||||
}
|
||||
|
||||
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId))
|
||||
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId) || pokemonEvolutions[this.speciesId].filter(e => !e.evoFormKey || e.evoFormKey.indexOf(SpeciesFormKey.MEGA) === -1))
|
||||
return this.speciesId;
|
||||
|
||||
const evolutions = pokemonEvolutions[this.speciesId];
|
||||
|
Loading…
x
Reference in New Issue
Block a user