Only check forms which are starter selectable

This commit is contained in:
Wlowscha 2025-03-16 12:33:13 +01:00
parent 0357b2bb58
commit 95b87f7ce5
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -2981,6 +2981,9 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
/* Here we are making a fake form index dex props for challenges
* Since some pokemon rely on forms to be valid (i.e. blaze tauros for fire challenges), we make a fake form and dex props to use in the challenge
*/
if (!species.forms[i].isStarterSelectable) {
continue;
}
const tempFormProps = BigInt(Math.pow(2, i)) * DexAttr.DEFAULT_FORM;
const isValidForChallenge = checkStarterValidForChallenge(
container.species,