Add pikachu7 forme nongift check

other branch was unhandled, flag if we have a mismatch
closes #1762
This commit is contained in:
Kurt 2018-01-15 17:50:33 -08:00
parent 06733d6e34
commit 17e4bdbe3a

View file

@ -1948,11 +1948,10 @@ namespace PKHeX.Core
} }
if (Info.Generation == 7 && pkm.AltForm != 0 ^ Type == typeof(MysteryGift)) if (Info.Generation == 7 && pkm.AltForm != 0 ^ Type == typeof(MysteryGift))
{ {
if (EncounterMatch is WC7 gift && gift.Form != pkm.AltForm) bool gift = EncounterMatch is WC7 g && g.Form != pkm.AltForm;
{ var msg = gift ? V307 : V317;
AddLine(Severity.Invalid, V307, CheckIdentifier.Form); AddLine(Severity.Invalid, msg, CheckIdentifier.Form);
return; return;
}
} }
break; break;
case 201 when Info.Generation == 2 && pkm.AltForm >= 26: case 201 when Info.Generation == 2 && pkm.AltForm >= 26: