Skip to content

Commit

Permalink
Update manaphy ability check again
Browse files Browse the repository at this point in the history
5725082
covered it for format>=6, in 4/5 the abilitynumber is derived from
PIDAbility
Closes #2052
  • Loading branch information
kwsch committed Jul 11, 2018
1 parent 01323c0 commit 8a83b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PKHeX.Core/Legality/Verifiers/AbilityVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private CheckResult VerifyAbilityMG(LegalityAnalysis data, IReadOnlyList<int> ab

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
Expand Down

0 comments on commit 8a83b9b

Please sign in to comment.