fixed displayed dex number in summary

This commit is contained in:
cawtds
2024-04-27 02:18:41 +02:00
parent 83e2226849
commit 402a7d8d11

View File

@@ -4835,10 +4835,11 @@ u8 GetNumberOfRelearnableMoves(struct Pokemon *mon)
u16 SpeciesToPokedexNum(u16 species)
{
species = SpeciesToNationalPokedexNum(species);
if (!IsNationalPokedexEnabled() && species > KANTO_SPECIES_END)
return 0xFFFF;
return species;
if (!IsNationalPokedexEnabled())
{
species = NationalToKantoOrder(species);
}
return species > 0 ? species : 0xFFFF;
}
void ClearBattleMonForms(void)