From 607cbc5eb6af9217a9b3c66811ff5eebc5987536 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 27 Nov 2022 12:51:05 -0800 Subject: [PATCH] Check pre-evolution TM flag permit if highest not --- PKHeX.Core/Legality/Verifiers/MiscVerifier.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Verifiers/MiscVerifier.cs b/PKHeX.Core/Legality/Verifiers/MiscVerifier.cs index e465d8842..949f63159 100644 --- a/PKHeX.Core/Legality/Verifiers/MiscVerifier.cs +++ b/PKHeX.Core/Legality/Verifiers/MiscVerifier.cs @@ -801,7 +801,16 @@ public sealed class MiscVerifier : Verifier if ((pi ??= GetPersonal(evos[0])).TMHM[i]) continue; - data.AddLine(GetInvalid(string.Format(LMoveSourceTR, GetMoveName(i)))); + bool preEvoHas = false; + for (int p = 1; p < evos.Length; p++) + { + if (!GetPersonal(evos[p]).TMHM[i]) + continue; + preEvoHas = true; + break; + } + if (!preEvoHas) + data.AddLine(GetInvalid(string.Format(LMoveSourceTR, GetMoveName(i)))); } } }