If a Pokemon's ability is set to ABILITY_NONE, try to set it to the first ability slot. #1490

This commit is contained in:
surskitty 2021-05-17 17:08:01 -04:00
parent 50c2514267
commit ba42b4daf4

View file

@ -5374,6 +5374,9 @@ u8 GetAbilityBySpecies(u16 species, u8 abilityNum)
else else
gLastUsedAbility = gBaseStats[species].abilities[0]; gLastUsedAbility = gBaseStats[species].abilities[0];
if (gLastUsedAbility == ABILITY_NONE)
gLastUsedAbility = gBaseStats[species].abilities[0];
return gLastUsedAbility; return gLastUsedAbility;
} }