Update egg related legality checks for g4

#1078
unhatched -> hatched when checking a hatched egg
faraway check for Pt as well as HGSS.
This commit is contained in:
Kurt 2017-04-19 21:39:05 -07:00
parent 36515b8178
commit 6bd2e3b20a
2 changed files with 2 additions and 2 deletions

View file

@ -627,7 +627,7 @@ namespace PKHeX.Core
if (pkm.Met_Location != 30001)
return new CheckResult(Severity.Invalid, V61, CheckIdentifier.Encounter);
return new CheckResult(Severity.Valid, V63, CheckIdentifier.Encounter);
return new CheckResult(Severity.Valid, V53, CheckIdentifier.Encounter);
}
private CheckResult verifyEncounterEgg5()
{

View file

@ -443,7 +443,7 @@ namespace PKHeX.Core
{
switch (GenNumber)
{
case 4: return Legal.EggLocations4.Contains(Egg_Location) || (Species == 490 && Egg_Location == 3001) || (Egg_Location == 3002 && HGSS); // faraway
case 4: return Legal.EggLocations4.Contains(Egg_Location) || (Species == 490 && Egg_Location == 3001) || (Egg_Location == 3002 && PtHGSS); // faraway
case 5: return Legal.EggLocations5.Contains(Egg_Location);
case 6:
case 7: return Legal.EggLocations.Contains(Egg_Location);