No male Ralts in mono fairy challenge

This commit is contained in:
Wlowscha 2025-09-18 19:04:54 +02:00
parent 82b2d49831
commit d60f5d4d65
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -756,10 +756,15 @@ export class SingleTypeChallenge extends Challenge {
applyStarterSelectModify(speciesId: SpeciesId, dexEntry: DexEntry, _starterDataEntry: StarterDataEntry): boolean {
const type = this.value - 1;
if (type === PokemonType.FIGHTING && speciesId === SpeciesId.RALTS) {
if (speciesId === SpeciesId.RALTS) {
if (type === PokemonType.FIGHTING) {
dexEntry.caughtAttr &= ~DexAttr.FEMALE;
}
if (type === PokemonType.GHOST && speciesId === SpeciesId.SNORUNT) {
if (type === PokemonType.FAIRY) {
dexEntry.caughtAttr &= ~DexAttr.MALE;
}
}
if (speciesId === SpeciesId.SNORUNT && type === PokemonType.GHOST) {
dexEntry.caughtAttr &= ~DexAttr.MALE;
}
if (speciesId === SpeciesId.BURMY) {