mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
Add Keldeo move mismatch
Probably going to move to a form check later.
This commit is contained in:
parent
6b410dd65c
commit
1a2aee930d
1 changed files with 5 additions and 0 deletions
|
@ -227,6 +227,11 @@ namespace PKHeX
|
|||
if (Moves[0] == 0)
|
||||
res[0] = new LegalityCheck(Severity.Invalid, "Invalid Move.");
|
||||
|
||||
|
||||
if (pk6.Species == 647) // Keldeo
|
||||
if (pk6.AltForm == 1 ^ pk6.Moves.Contains(533))
|
||||
res[0] = new LegalityCheck(Severity.Invalid, "Sacred Sword / Resolute Keldeo Mismatch.");
|
||||
|
||||
// Duplicate Moves Check
|
||||
for (int i = 0; i < 4; i++)
|
||||
if (Moves.Count(m => m != 0 && m == Moves[i]) > 1)
|
||||
|
|
Loading…
Reference in a new issue