This commit is contained in:
Flashfyre 2023-12-07 18:41:55 -05:00
parent f671eda029
commit 19bea46574
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm {
}
}
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId) || pokemonEvolutions[this.speciesId].filter(e => !e.evoFormKey || e.evoFormKey.indexOf(SpeciesFormKey.MEGA) === -1))
if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId) || !pokemonEvolutions[this.speciesId].filter(e => !e.evoFormKey || e.evoFormKey.indexOf(SpeciesFormKey.MEGA) === -1).length)
return this.speciesId;
const evolutions = pokemonEvolutions[this.speciesId];