Merge pull request #1491 from surskitty/mega_evolution_hidden_abilities

Pokemon with no ability recheck first ability slot.
This commit is contained in:
ExpoSeed 2021-05-22 14:59:06 -05:00 committed by GitHub
commit 2ad251cec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}