From 8250f7c8120ba73d193619f8aee38ffd3ec684fd Mon Sep 17 00:00:00 2001 From: sora10pls Date: Tue, 27 Oct 2020 12:14:49 -0400 Subject: [PATCH] Update FormRandomizer.cs Rayquaza's Forme Count was untouched with R2, so this can lead to an invalid spec-form when Randomizing. Disallow Rayquaza-1 (Mega). --- pkNX.Randomization/Randomizers/FormRandomizer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkNX.Randomization/Randomizers/FormRandomizer.cs b/pkNX.Randomization/Randomizers/FormRandomizer.cs index 64f4e5b1..42f609b8 100644 --- a/pkNX.Randomization/Randomizers/FormRandomizer.cs +++ b/pkNX.Randomization/Randomizers/FormRandomizer.cs @@ -24,6 +24,9 @@ public int GetRandomForme(int species, bool mega, bool fused, bool alola, bool g switch ((Species)species) { + // Rayquaza's Forme Count was unchanged in SWSH despite Megas being removed, so just in case the user allows random Megas, disallow this invalid Forme. + case Rayquaza when Personal.TableLength == 1192: + return 0; case Unown: case Deerling: case Sawsbuck: