mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Revise egg wc3 fateful check to return instead of break
Emerald has the same met locations too, which doesn't clear fateful. So if it was hatched in an RS(E) location, we can't know for sure. Closes #2790 , but keep in mind the posted file is illegal anyways -- can't get egg move aromatherapy with wish.
This commit is contained in:
parent
a33fa5efbe
commit
27d1feafd7
1 changed files with 3 additions and 2 deletions
|
@ -154,10 +154,11 @@ namespace PKHeX.Core
|
|||
if (w.IsEgg)
|
||||
{
|
||||
// Eggs hatched in RS clear the obedience flag!
|
||||
// Hatching in Gen3 doesn't change the origin version.
|
||||
if (pkm.Format != 3)
|
||||
return; // possible hatched in either game, don't bother checking
|
||||
if (pkm.Met_Location <= 087) // hatched in RS
|
||||
break; // ensure fateful is not active
|
||||
if (pkm.Met_Location <= 087) // hatched in RS or Emerald
|
||||
return; // possible hatched in either game, don't bother checking
|
||||
// else, ensure fateful is active (via below)
|
||||
}
|
||||
VerifyFatefulIngameActive(data);
|
||||
|
|
Loading…
Reference in a new issue