From 001c570a48950d13c271d69048c24930bc2a63fb Mon Sep 17 00:00:00 2001 From: chenzw95 Date: Wed, 25 May 2016 13:20:19 +0800 Subject: [PATCH] Hatch memory check for memories of OT Memory will be flagged as illegal if Pokemon did not hatch from an egg --- Legality/Checks.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Legality/Checks.cs b/Legality/Checks.cs index 87f335289..107952ed3 100644 --- a/Legality/Checks.cs +++ b/Legality/Checks.cs @@ -696,6 +696,10 @@ namespace PKHeX } switch (pk6.OT_Memory) { + case 2: // {0} hatched from an Egg and saw {1} for the first time at... {2}. {4} that {3}. + if (!pk6.WasEgg) + return new LegalityCheck(Severity.Invalid, "OT Memory: OT did not hatch this."); + return new LegalityCheck(Severity.Valid, "OT Memory is valid."); case 4: // {0} became {1}’s friend when it arrived via Link Trade at... {2}. {4} that {3}. return new LegalityCheck(Severity.Invalid, "OT Memory: Link Trade is not a valid first memory."); case 6: // {0} went to the Pokémon Center in {2} with {1} and had its tired body healed there. {4} that {3}.