mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Permit galar native species to inherit past-gen balls
This commit is contained in:
parent
093ce2a020
commit
9dbc3cd418
|
|
@ -261,11 +261,12 @@ private CheckResult VerifyBallEggGen8(LegalityAnalysis data)
|
|||
if ((int)Species.Grookey <= species && species <= (int)Species.Inteleon) // G8 Starters
|
||||
return VerifyBallEquals(data, (int)Poke);
|
||||
|
||||
if (IsGalarCapture(species))
|
||||
if (IsGalarBreed(species))
|
||||
{
|
||||
if (!Legal.WildPokeballs8.Contains(pkm.Ball))
|
||||
if (Legal.WildPokeballs8.Contains(pkm.Ball))
|
||||
return GetValid(LBallSpeciesPass);
|
||||
if (species >= (int)Species.Grookey)
|
||||
return GetInvalid(LBallSpecies);
|
||||
return GetValid(LBallSpeciesPass);
|
||||
}
|
||||
|
||||
Ball ball = (Ball)pkm.Ball;
|
||||
|
|
@ -336,12 +337,10 @@ private CheckResult VerifyBallEggGen8(LegalityAnalysis data)
|
|||
return NONE;
|
||||
}
|
||||
|
||||
public static bool IsGalarCapture(int species)
|
||||
public static bool IsGalarBreed(int species)
|
||||
{
|
||||
if ((int)Species.Grookey <= species && species <= (int)Species.Inteleon) // starter
|
||||
return false;
|
||||
if ((int)Species.Dracozolt <= species && species <= (int)Species.Arctovish) // fossil
|
||||
return false;
|
||||
var pt = PersonalTable.SWSH;
|
||||
return ((PersonalInfoSWSH)pt.GetFormeEntry(species, 0)).PokeDexIndex != 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user