Handle hatched wc3 metlevel oddballs

Closes #1978

Met Level at 5, when hatched ingame is reset to 0.
This commit is contained in:
Kurt 2018-06-02 07:50:48 -07:00
parent e0aa1934e7
commit 15b5de11c0
3 changed files with 4 additions and 2 deletions

View file

@ -918,7 +918,7 @@ namespace PKHeX.Core
{ {
switch (gift) switch (gift)
{ {
case WC3 wc3 when wc3.Met_Level == pkm.Met_Level: case WC3 wc3 when wc3.Met_Level == pkm.Met_Level || wc3.IsEgg:
break; break;
case WC7 wc7 when wc7.MetLevel == pkm.Met_Level: case WC7 wc7 when wc7.MetLevel == pkm.Met_Level:
break; break;

View file

@ -198,9 +198,11 @@ namespace PKHeX.Core
if (pkm.IsNative) if (pkm.IsNative)
{ {
if (hatchedEgg)
return true; // defer egg specific checks to later.
if (wc.Met_Level != pkm.Met_Level) if (wc.Met_Level != pkm.Met_Level)
return false; return false;
if (wc.Location != pkm.Met_Location && (!wc.IsEgg || pkm.IsEgg)) if (wc.Location != pkm.Met_Location)
return false; return false;
} }
else else