From 001c570a48950d13c271d69048c24930bc2a63fb Mon Sep 17 00:00:00 2001 From: chenzw95 Date: Wed, 25 May 2016 13:20:19 +0800 Subject: [PATCH 1/2] 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 @@ private LegalityCheck verifyOTMemory() } 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}. From 53a49195d60c6e633e3f93089c7f60d7af85db9b Mon Sep 17 00:00:00 2001 From: chenzw95 Date: Wed, 25 May 2016 13:22:17 +0800 Subject: [PATCH 2/2] Fix typo in output of HT memory check --- Legality/Checks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Legality/Checks.cs b/Legality/Checks.cs index 107952ed3..3b924e242 100644 --- a/Legality/Checks.cs +++ b/Legality/Checks.cs @@ -726,7 +726,7 @@ private LegalityCheck verifyOTMemory() private LegalityCheck verifyHTMemory() { if (!History.Valid) - return new LegalityCheck(Severity.Valid, "Skipped OT Memory check as History is not valid."); + return new LegalityCheck(Severity.Valid, "Skipped HT Memory check as History is not valid."); switch (pk6.HT_Memory) {