mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Handle hatched wc3 metlevel oddballs
Closes #1978 Met Level at 5, when hatched ingame is reset to 0.
This commit is contained in:
parent
e0aa1934e7
commit
15b5de11c0
3 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue