From 69f11ec3bc0b2ffbc09321237728d233978480cc Mon Sep 17 00:00:00 2001 From: ReignOfComputer Date: Fri, 17 Nov 2017 23:57:55 +0800 Subject: [PATCH] Flip Valid Trade OT Compare Operator Related: https://projectpokemon.org/home/forums/topic/42528-bw2-in-game-trades-yancycurtis-20171117/ --- PKHeX.Core/Legality/Checks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Checks.cs b/PKHeX.Core/Legality/Checks.cs index db4602b88..9c7d1a04e 100644 --- a/PKHeX.Core/Legality/Checks.cs +++ b/PKHeX.Core/Legality/Checks.cs @@ -419,7 +419,7 @@ namespace PKHeX.Core if (pkm.IsNicknamed) AddLine(Severity.Invalid, V9, CheckIdentifier.Nickname); int lang = pkm.Language; - if (validOT.Length >= lang) + if (validOT.Length <= lang) AddLine(Severity.Invalid, V8, CheckIdentifier.Trainer); else if (validOT[lang] != pkm.OT_Name) AddLine(Severity.Invalid, V10, CheckIdentifier.Trainer);