mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
parent
fa9fba464b
commit
b1fac83c8e
1 changed files with 2 additions and 0 deletions
|
@ -338,6 +338,8 @@ namespace PKHeX.Core
|
|||
|
||||
int[] abilities = PersonalInfo.Abilities;
|
||||
int abilval = Array.IndexOf(abilities, Ability);
|
||||
if (abilval >= 0 && abilities[abilval] == abilities[2] && HiddenAbility)
|
||||
abilval = 2; // hidden ability shared with a regular ability
|
||||
if (abilval >= 0)
|
||||
pk6.AbilityNumber = 1 << abilval;
|
||||
else // Fallback (shouldn't happen)
|
||||
|
|
Loading…
Reference in a new issue