Revise Vivillon form sanity check

Previously, slots were hard-matched to 18; now since they're "random", we need to flag out of bounds values.
This commit is contained in:
Kurt 2023-03-04 14:53:01 -08:00
parent 94d5ca491f
commit 81bcd95dc1

View file

@ -104,6 +104,8 @@ public sealed class FormVerifier : Verifier
break; break;
case Scatterbug or Spewpa or Vivillon when GameVersion.SV.Contains(enc.Version): case Scatterbug or Spewpa or Vivillon when GameVersion.SV.Contains(enc.Version):
if (form > 18 && enc.Form != form) // Pokéball
return GetInvalid(LFormVivillonEventPre);
if (form != 18 && enc is EncounterEgg) // Fancy if (form != 18 && enc is EncounterEgg) // Fancy
return GetInvalid(LFormVivillonNonNative); return GetInvalid(LFormVivillonNonNative);
break; break;