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).
This commit is contained in:
sora10pls
2020-10-27 12:14:49 -04:00
parent 295e14c433
commit 8250f7c812

View File

@@ -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: