mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-15 00:21:23 -05: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
|
|
@ -154,10 +154,11 @@ private static void VerifyMiscFatefulEncounter(LegalityAnalysis data)
|
|||
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 New Issue
Block a user