Update manaphy ability check again

57250823a8
covered it for format>=6, in 4/5 the abilitynumber is derived from
PIDAbility
Closes #2052
This commit is contained in:
Kurt 2018-07-10 21:30:13 -07:00
parent 01323c0ee8
commit 8a83b9bde8

View file

@ -169,7 +169,7 @@ namespace PKHeX.Core
var pkm = data.pkm;
if (data.EncounterMatch is PGT) // Ranger Manaphy
return pkm.AbilityNumber == 1 ? VALID : GetInvalid(V110);
return (pkm.Format >= 6 ? (pkm.AbilityNumber == 1) : (pkm.AbilityNumber < 4)) ? VALID : GetInvalid(V110);
int abilNumber = pkm.AbilityNumber;
if (cardtype == 4) // 1/2/H