XY Battle Resort egg met location

Hatched eggs would have to be Link Trade.
This commit is contained in:
Kaphotics
2016-04-23 10:12:52 -07:00
parent 9b0394847b
commit ce53cd704d

View File

@@ -249,6 +249,8 @@ private LegalityCheck verifyEncounter()
}
if (pk6.XY)
{
if (pk6.Egg_Location == 318)
return new LegalityCheck(Severity.Invalid, "Invalid X/Y egg location.");
return Legal.ValidMet_XY.Contains(pk6.Met_Location)
? new LegalityCheck(Severity.Valid, "Valid X/Y hatched egg.")
: new LegalityCheck(Severity.Invalid, "Invalid X/Y location for hatched egg.");