mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 13:58:33 +00:00
Add duplicate relearn move check
Same duplication check as moves Closes #709
This commit is contained in:
parent
c9e721fc5b
commit
130807c698
1 changed files with 6 additions and 0 deletions
|
@ -1852,6 +1852,12 @@ namespace PKHeX.Core
|
|||
if (res.All(r => r.Valid))
|
||||
break;
|
||||
}
|
||||
|
||||
// Duplicate Moves Check
|
||||
for (int i = 0; i < 4; i++)
|
||||
if (Moves.Count(m => m != 0 && m == Moves[i]) > 1)
|
||||
res[i] = new CheckResult(Severity.Invalid, "Duplicate Relearn Move.", CheckIdentifier.RelearnMove);
|
||||
|
||||
return res;
|
||||
}
|
||||
if (Moves[0] != 0) // DexNav only?
|
||||
|
|
Loading…
Add table
Reference in a new issue