Fixed datatypes for Ability inheriting (#4411)

This commit is contained in:
Eduardo Quezada
2024-04-19 12:05:45 -04:00
committed by GitHub
parent be093e7414
commit 4f0d98ec52

View File

@@ -713,10 +713,10 @@ static void InheritPokeball(struct Pokemon *egg, struct BoxPokemon *father, stru
static void InheritAbility(struct Pokemon *egg, struct BoxPokemon *father, struct BoxPokemon *mother)
{
u8 fatherAbility = GetBoxMonData(father, MON_DATA_ABILITY_NUM);
u8 motherAbility = GetBoxMonData(mother, MON_DATA_ABILITY_NUM);
u8 motherSpecies = GetBoxMonData(mother, MON_DATA_SPECIES);
u8 inheritAbility = motherAbility;
u16 fatherAbility = GetBoxMonData(father, MON_DATA_ABILITY_NUM);
u16 motherAbility = GetBoxMonData(mother, MON_DATA_ABILITY_NUM);
u16 motherSpecies = GetBoxMonData(mother, MON_DATA_SPECIES);
u16 inheritAbility = motherAbility;
if (motherSpecies == SPECIES_DITTO)
{