Check pre-evolution TM flag permit if highest not

This commit is contained in:
Kurt 2022-11-27 12:51:05 -08:00
parent 7e0aa44a9a
commit 607cbc5eb6

View file

@ -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))));
}
}
}