add forgotten TryIncrementSpeciesSearchLevel call

This commit is contained in:
ghoulslash 2021-06-11 12:27:45 -06:00
parent 0c14ec4b78
commit 5fd40d90ef

View file

@ -6769,6 +6769,9 @@ void HandleSetPokedexFlag(u16 nationalNum, u8 caseId, u32 personality)
if (NationalPokedexNumToSpecies(nationalNum) == SPECIES_SPINDA) if (NationalPokedexNumToSpecies(nationalNum) == SPECIES_SPINDA)
gSaveBlock2Ptr->pokedex.spindaPersonality = personality; gSaveBlock2Ptr->pokedex.spindaPersonality = personality;
} }
if (caseId == FLAG_SET_SEEN)
TryIncrementSpeciesSearchLevel(nationalNum); // encountering pokemon increments its search level
} }
const u8 *GetTrainerClassNameFromId(u16 trainerId) const u8 *GetTrainerClassNameFromId(u16 trainerId)