Add uncapturable edge case beast ball

can't catch these in a beast ball as the only encounter is a gift
(porygon & evos, and aerodactyl)

#1100
This commit is contained in:
Kurt 2017-05-09 19:27:30 -07:00
parent 8154af64c3
commit 9eae35ba34
2 changed files with 6 additions and 1 deletions

View file

@ -1817,7 +1817,7 @@ namespace PKHeX.Core
if (ball == 26)
{
if ((pkm.Species > 731 && pkm.Species <= 785) || Lineage.Any(e => Legal.PastGenAlolanNatives.Contains(e)))
if ((pkm.Species > 731 && pkm.Species <= 785) || Lineage.Any(e => Legal.PastGenAlolanNatives.Contains(e) && !Legal.PastGenAlolanNativesUncapturable.Contains(e)))
{
AddLine(Severity.Valid, V123, CheckIdentifier.Ball);
return;

View file

@ -303,6 +303,11 @@ namespace PKHeX.Core
582, 583, 584, 587, 594, 627, 628, 629, 630, 661, 662, 663, 674, 675, 700, 703, 704, 705, 706, 707, 708, 709,
718
};
public static readonly int[] PastGenAlolanNativesUncapturable =
{
142, // Aerodacyl
137, 233, 474 // Porygon++
};
internal static readonly int[] PastGenAlolanScans =
{