From bb60b140e29d4dcb84725be4cea2afe80335a8b7 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 25 Oct 2020 18:07:13 -0700 Subject: [PATCH] Allow Gen8 balls on gen3-species eggs originating in Gen8 --- PKHeX.Core/Legality/Verifiers/BallVerifier.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Verifiers/BallVerifier.cs b/PKHeX.Core/Legality/Verifiers/BallVerifier.cs index 155ae3410..e22b22057 100644 --- a/PKHeX.Core/Legality/Verifiers/BallVerifier.cs +++ b/PKHeX.Core/Legality/Verifiers/BallVerifier.cs @@ -352,7 +352,14 @@ private static bool IsGalarCatchAndBreed(int species) // Everything breed-able that is in the Galar Dex can be captured in-game. var pt = PersonalTable.SWSH; var pi = (PersonalInfoSWSH) pt.GetFormeEntry(species, 0); - return pi.IsInDex; + if (pi.IsInDex) + return true; + + // Foreign Captures + if ((int)Species.Treecko <= species && species <= (int)Species.Swampert) // Dynamax Adventures + return true; + + return false; } private CheckResult VerifyBallEquals(LegalityAnalysis data, int ball) => GetResult(ball == data.pkm.Ball);