Allow Gen8 balls on gen3-species eggs originating in Gen8

This commit is contained in:
Kurt
2020-10-25 18:07:13 -07:00
parent 9e380fdcde
commit bb60b140e2

View File

@@ -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);