mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 05:26:31 -05:00
Ban ball inheritance for bdsp fossils
This commit is contained in:
@@ -985,7 +985,7 @@ internal static class BallBreedLegality
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// All egg species that can inherit a Safar Ball when bred in BD/SP.
|
||||
/// All egg species that can inherit a Safari Ball when bred in BD/SP.
|
||||
/// </summary>
|
||||
internal static readonly HashSet<int> InheritSafari_BDSP = new()
|
||||
{
|
||||
@@ -1012,5 +1012,17 @@ internal static class BallBreedLegality
|
||||
(int)Wooper,
|
||||
(int)Yanma,
|
||||
};
|
||||
|
||||
internal static readonly HashSet<int> BanInheritedBall_BDSP = new()
|
||||
{
|
||||
// Gen1 Fossils
|
||||
(int)Aerodactyl, (int)Omanyte, (int)Kabuto,
|
||||
// Gen3 Fossils
|
||||
(int)Lileep, (int)Anorith,
|
||||
// Gen4 Fossils
|
||||
(int)Cranidos, (int)Shieldon,
|
||||
|
||||
(int)Phione,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ private CheckResult VerifyBallEggGen7(LegalityAnalysis data)
|
||||
private CheckResult VerifyBallEggGen8BDSP(LegalityAnalysis data)
|
||||
{
|
||||
int species = data.EncounterMatch.Species;
|
||||
if (species is (int)Species.Phione)
|
||||
if (BallBreedLegality.BanInheritedBall_BDSP.Contains(species))
|
||||
return VerifyBallEquals(data, (int)Poke);
|
||||
|
||||
if (data.pkm.Ball == (int)Safari)
|
||||
|
||||
Reference in New Issue
Block a user