Handle ??? type gen4 arceus form check

interstitial between steel & fire, shift the form value up by 1 if
applicable

https://projectpokemon.org/home/forums/topic/44806-arceus-not-legal/?tab=comments#comment-229774
This commit is contained in:
Kurt 2018-04-14 18:20:58 -07:00
parent 7a77b4524f
commit 6db0b673db

View file

@ -2070,6 +2070,8 @@ namespace PKHeX.Core
form = Array.IndexOf(Legal.Arceus_Plate, item) + 1;
else if (777 <= item && item <= 793)
form = Array.IndexOf(Legal.Arceus_ZCrystal, item) + 1;
if (pkm.Format == 4 && form >= 9)
form++; // ??? type Form shifts everything by 1
if (form != pkm.AltForm)
AddLine(Severity.Invalid, V308, CheckIdentifier.Form);