summaryrefslogtreecommitdiff
path: root/src/egg_hatch.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-02-16 17:54:44 -0500
committerGitHub <noreply@github.com>2021-02-16 17:54:44 -0500
commit0ea1e7620cc5fea1e651974442052ba9c52cdd13 (patch)
tree63a6a57d8bc1e4dc2e40322385da1742f5766203 /src/egg_hatch.c
parentc7bbd485c3103c6a51d15f6e0081922d3c14d42d (diff)
parenta1138223e9a88d68666cf361a1adfa7cb3776929 (diff)
Merge pull request #820 from Deokishisu/master
Mirror pokeemerald PR#1329 & PR#1335 to pokeruby
Diffstat (limited to 'src/egg_hatch.c')
-rw-r--r--src/egg_hatch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egg_hatch.c b/src/egg_hatch.c
index 24c2340ac..fdc12129e 100644
--- a/src/egg_hatch.c
+++ b/src/egg_hatch.c
@@ -241,6 +241,7 @@ static void CreatedHatchedMon(struct Pokemon *egg, struct Pokemon *temp)
gameMet = GetMonData(egg, MON_DATA_MET_GAME);
markings = GetMonData(egg, MON_DATA_MARKINGS);
pokerus = GetMonData(egg, MON_DATA_POKERUS);
+ //FRLGE also copy the eventLegal field to the hatched Pokemon. PCNY Wish Eggs traded to RS and hatched will not have their eventLegal bit set and will not be Fateful Encounters in future games.
CreateMon(temp, species, EGG_HATCH_LEVEL, 32, TRUE, personality, 0, 0);