From a6d034838337c8d9dee43d286ebfb9753b961704 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 20 Mar 2024 17:56:03 -0400 Subject: [PATCH] Another prevolution levels form check fix --- 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 641c51bb434..c1beb219cac 100644 --- a/src/data/pokemon-species.ts +++ b/src/data/pokemon-species.ts @@ -524,7 +524,7 @@ export default class PokemonSpecies extends PokemonSpeciesForm { const allEvolvingPokemon = Object.keys(pokemonEvolutions); for (let p of allEvolvingPokemon) { for (let e of pokemonEvolutions[p]) { - if (e.speciesId === this.speciesId && (!this.forms.length || (e.evoFormKey || '') === this.forms[this.formIndex].formKey)) { + if (e.speciesId === this.speciesId && (!this.forms.length || !e.evoFormKey || e.evoFormKey === this.forms[this.formIndex].formKey)) { const speciesId = parseInt(p) as Species; let level = e.level; prevolutionLevels.push([ speciesId, level ]);