mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-20 22:32:00 +00:00
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:
parent
8154af64c3
commit
9eae35ba34
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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 =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue