mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
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:
parent
d5e5a463dc
commit
4c0a2602eb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user