Simplify greninja gift check

form is already checked in the encounter generator, so the only case
where it has not been thoroughly checked is if it is not a mystery gift.
it will always be the default form (in that case).
This commit is contained in:
Kurt 2017-08-30 08:14:42 -07:00
parent d5e5a463dc
commit 4c0a2602eb

View File

@ -2112,7 +2112,7 @@ private void VerifyForm()
AddLine(Severity.Invalid, V310, CheckIdentifier.Form);
return;
}
if (pkm.AltForm != 0 ^ Type == typeof(MysteryGift)) // Formes are not breedable
if (pkm.AltForm != 0 && Type != typeof(MysteryGift)) // Formes are not breedable, MysteryGift already checked
{
AddLine(Severity.Invalid, string.Format(V304, 0, pkm.AltForm), CheckIdentifier.Form);
return;