mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 07:42:25 +02:00
Exclude form changes that are not triggered by an item
This commit is contained in:
parent
95b87f7ce5
commit
0b50cbe348
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user