From 2c4e3358e469caf322ac32a024e2d052892d2cf2 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 18 Mar 2018 15:30:19 -0700 Subject: [PATCH] Fix ninjask evo move comparison https://projectpokemon.org/home/forums/topic/44413-bug-information-about-bug-found-on-the-new-version-180319/ --- .../Encounters/Verifiers/VerifyCurrentMoves.cs | 2 +- ...SHEDINJA - 4E10A0E852EE (two Ninjask Moves).pk3 | Bin 0 -> 80 bytes .../General/292 - SHEDINJA - 4889A0E852EE.pk3 | Bin 0 -> 80 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Tests/PKHeX.Tests/Legality/Illegal/Moves/292 - SHEDINJA - 4E10A0E852EE (two Ninjask Moves).pk3 create mode 100644 Tests/PKHeX.Tests/Legality/Legal/General/292 - SHEDINJA - 4889A0E852EE.pk3 diff --git a/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs b/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs index 1bd209271..45e586fb2 100644 --- a/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs +++ b/PKHeX.Core/Legality/Encounters/Verifiers/VerifyCurrentMoves.cs @@ -579,7 +579,7 @@ namespace PKHeX.Core for (int m = 0; m < 4; m++) { - if (m == move) + if (m != move) continue; if (res[m].Source != MoveSource.LevelUp) continue; diff --git a/Tests/PKHeX.Tests/Legality/Illegal/Moves/292 - SHEDINJA - 4E10A0E852EE (two Ninjask Moves).pk3 b/Tests/PKHeX.Tests/Legality/Illegal/Moves/292 - SHEDINJA - 4E10A0E852EE (two Ninjask Moves).pk3 new file mode 100644 index 0000000000000000000000000000000000000000..4a8136ac617b6b20df7f3d95fafb34dccd3fa0e4 GIT binary patch literal 80 zcmaDC^kTs!mP;&W5AEM~_{5Rj{~4H=P8~gT^V0wS3<7=(4El@=4873|3=D1z3|tIZ a415fW8I