mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-22 16:22:31 +02:00
Fixing Basculin
This commit is contained in:
parent
bcef75fb10
commit
0357b2bb58
@ -1281,7 +1281,11 @@ export function checkStarterValidForChallenge(species: PokemonSpecies, props: De
|
|||||||
}
|
}
|
||||||
if (checking && pokemonEvolutions.hasOwnProperty(checking)) {
|
if (checking && pokemonEvolutions.hasOwnProperty(checking)) {
|
||||||
pokemonEvolutions[checking].forEach(e => {
|
pokemonEvolutions[checking].forEach(e => {
|
||||||
speciesToCheck.push(e.speciesId);
|
// Form check to deal with cases such as Basculin -> Basculegion
|
||||||
|
// TODO: does this miss anything if checking forms of a stage 2 Pokémon?
|
||||||
|
if (!e?.preFormKey || e.preFormKey === species.forms[props.formIndex].formKey) {
|
||||||
|
speciesToCheck.push(e.speciesId);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user