From c1cce43daf93d8acb11473dc64ff979c04b59efe Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Wed, 20 Mar 2024 15:05:45 -0400 Subject: [PATCH] Fix form matching on prevolution levels logic --- 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 45b658aa4..de7281d4c 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 && !e.evoFormKey) { + if (e.speciesId === this.speciesId && (!this.forms.length || e.evoFormKey === this.forms[this.formIndex].formKey)) { const speciesId = parseInt(p) as Species; let level = e.level; prevolutionLevels.push([ speciesId, level ]);