From 7c1e82d08ca74a228b9586c086f3c9db34269e40 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 8 Dec 2023 20:02:25 -0500 Subject: [PATCH] Fix fully evolved species with mega evolutions treated as middle for fusions --- 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 5acc99299..e265c1275 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -311,7 +311,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).length) + if (!allowEvolving || !pokemonEvolutions.hasOwnProperty(this.speciesId) || !pokemonEvolutions[this.speciesId].find(e => !e.evoFormKey || e.evoFormKey.indexOf(SpeciesFormKey.MEGA) === -1)) return this.speciesId; const evolutions = pokemonEvolutions[this.speciesId];