Introducing checkValidForChallenge function (unused)

This commit is contained in:
Wlowscha 2025-03-01 22:29:53 +01:00
parent 4b8b288507
commit 373b7895b4
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -1300,6 +1300,22 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
});
}
checkValidForChallenge(species: PokemonSpecies, soft: boolean) {
const isValidForChallenge = new BooleanHolder(true);
Challenge.applyChallenges(
globalScene.gameMode,
Challenge.ChallengeType.STARTER_CHOICE,
species,
isValidForChallenge,
globalScene.gameData.getSpeciesDexAttrProps(
species,
this.getCurrentDexProps(species.speciesId)
),
this.isPartyValid()
);
return isValidForChallenge.value;
}
processInput(button: Button): boolean {
if (this.blockInput) {
return false;