Add egg forme check

all other egg formes that are disallowed are checked later; check for
totems here
Closes #1667
This commit is contained in:
Kurt 2017-11-27 18:13:54 -08:00
parent f13cc289a7
commit c5b7ebf50a
2 changed files with 8 additions and 0 deletions

View file

@ -1867,6 +1867,14 @@ namespace PKHeX.Core
if (EncounterMatch is EncounterSlot w && w.Type == SlotType.FriendSafari)
VerifyFormFriendSafari();
else if (EncounterMatch is EncounterEgg)
{
if (FormConverter.IsTotemForm(pkm.Species, pkm.AltForm))
{
AddLine(Severity.Invalid, V317, CheckIdentifier.Form);
return;
}
}
switch (pkm.Species)
{