From 0b50cbe34898ebefc7b239402ff9a9f780c86d37 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sun, 16 Mar 2025 12:34:27 +0100 Subject: [PATCH] Exclude form changes that are not triggered by an item --- src/data/challenge.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/data/challenge.ts b/src/data/challenge.ts index 1c40c63dd31..a54f72aa7cc 100644 --- a/src/data/challenge.ts +++ b/src/data/challenge.ts @@ -1311,6 +1311,11 @@ function checkSpeciesValidForChallenge(species: PokemonSpecies, props: DexAttrPr return true; } pokemonFormChanges[species.speciesId].forEach(f1 => { + // Exclude form changes that require the mon to be on the field to begin with, + // such as Castform + if (!("item" in f1)) { + return; + } species.forms.forEach((f2, formIndex) => { if (f1.formKey === f2.formKey) { const formProps = { ...props };