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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue