From 6b18208ccbcaa8b64f1536642b3122ffed005f40 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 24 Jun 2019 15:45:49 -0700 Subject: [PATCH] Fix g2 trade OT check Closes #2332 thanks @WEERSOQUEER ! --- PKHeX.Core/Legality/Encounters/EncounterTrade.cs | 2 +- .../Legal/Generation 2/082 - TATO - 2D6E.pk2 | Bin 0 -> 73 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Tests/PKHeX.Core.Tests/Legality/Legal/Generation 2/082 - TATO - 2D6E.pk2 diff --git a/PKHeX.Core/Legality/Encounters/EncounterTrade.cs b/PKHeX.Core/Legality/Encounters/EncounterTrade.cs index 1ebe86b2c..e7e430244 100644 --- a/PKHeX.Core/Legality/Encounters/EncounterTrade.cs +++ b/PKHeX.Core/Legality/Encounters/EncounterTrade.cs @@ -349,7 +349,7 @@ private bool IsValidTradeOT12(PKM pkm) return TrainerNames[(int)LanguageID.Korean] == OT; const int start = (int)LanguageID.English; - const int end = (int)LanguageID.Italian; + const int end = (int)LanguageID.Spanish; var index = Array.FindIndex(TrainerNames, start, end - start + 1, w => w == OT); return index >= 0; } diff --git a/Tests/PKHeX.Core.Tests/Legality/Legal/Generation 2/082 - TATO - 2D6E.pk2 b/Tests/PKHeX.Core.Tests/Legality/Legal/Generation 2/082 - TATO - 2D6E.pk2 new file mode 100644 index 0000000000000000000000000000000000000000..7ca3d0b94b485a0063c1b90892401db74da76b7b GIT binary patch literal 73 zcmZP!`XAJ<7-C>}co73bEdv}(OH-B;5piQ+sAC0+i2xxt13v=~gCGM>+r*as{*C|; NnA|YA56lP%001it5V`;W literal 0 HcmV?d00001