Add hatch location check for static egg gifts

to match mysterygift check
This commit is contained in:
Kurt 2017-10-08 14:48:35 -07:00
parent c256786467
commit b63e444e15

View File

@ -308,6 +308,12 @@ private static CheckResult VerifyEncounterStatic(PKM pkm, EncounterStatic s)
return new CheckResult(Severity.Invalid, V74, CheckIdentifier.RelearnMove); // not gift egg
break;
}
if (s.EggEncounter && !pkm.IsEgg) // hatched
{
var hatchCheck = VerifyEncounterEgg(pkm, null);
if (!hatchCheck.Valid)
return hatchCheck;
}
return new CheckResult(Severity.Valid, V75, CheckIdentifier.Encounter);
}