mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
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:
parent
94d5ca491f
commit
81bcd95dc1
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ public sealed class FormVerifier : Verifier
|
|||
break;
|
||||
|
||||
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
|
||||
return GetInvalid(LFormVivillonNonNative);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue