mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
Merge pull request #1491 from surskitty/mega_evolution_hidden_abilities
Pokemon with no ability recheck first ability slot.
This commit is contained in:
commit
2ad251cec3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user