From 19bea46574d812379b0f9f58b5d0d92d5d95a4a2 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 7 Dec 2023 18:41:55 -0500 Subject: [PATCH] Fix typo --- src/data/pokemon-species.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/pokemon-species.ts b/src/data/pokemon-species.ts index cee11f8f019..25233d9035d 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -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];