mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-13 17:22:25 +01:00
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:
parent
50c2514267
commit
ba42b4daf4
@ -5374,6 +5374,9 @@ u8 GetAbilityBySpecies(u16 species, u8 abilityNum)
|
||||
else
|
||||
gLastUsedAbility = gBaseStats[species].abilities[0];
|
||||
|
||||
if (gLastUsedAbility == ABILITY_NONE)
|
||||
gLastUsedAbility = gBaseStats[species].abilities[0];
|
||||
|
||||
return gLastUsedAbility;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user