mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-08 08:11:35 -05:00
Add hatch location check for static egg gifts
to match mysterygift check
This commit is contained in:
parent
c256786467
commit
b63e444e15
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user