mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 00:07:15 +00:00
Check pre-evolution TM flag permit if highest not
This commit is contained in:
parent
7e0aa44a9a
commit
607cbc5eb6
1 changed files with 10 additions and 1 deletions
|
@ -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))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue