mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 14:02:47 -05:00
fix encounter criteria ability via number (#2898)
This commit is contained in:
@@ -86,7 +86,7 @@ public int GetGender(int gender, PersonalInfo pkPersonalInfo)
|
||||
public int GetAbilityFromNumber(int num, PersonalInfo pkPersonalInfo)
|
||||
{
|
||||
if (num > 0) // fixed number
|
||||
return num;
|
||||
return num >> 1;
|
||||
|
||||
var abils = pkPersonalInfo.Abilities;
|
||||
if (num == -1 && abils.Length > 2 && abils[2] == Ability) // hidden allowed
|
||||
|
||||
Reference in New Issue
Block a user