Flip Valid Trade OT Compare Operator

Related:
https://projectpokemon.org/home/forums/topic/42528-bw2-in-game-trades-yancycurtis-20171117/
This commit is contained in:
ReignOfComputer 2017-11-17 23:57:55 +08:00
parent 55d8f4aa26
commit 69f11ec3bc

View file

@ -419,7 +419,7 @@ namespace PKHeX.Core
if (pkm.IsNicknamed) if (pkm.IsNicknamed)
AddLine(Severity.Invalid, V9, CheckIdentifier.Nickname); AddLine(Severity.Invalid, V9, CheckIdentifier.Nickname);
int lang = pkm.Language; int lang = pkm.Language;
if (validOT.Length >= lang) if (validOT.Length <= lang)
AddLine(Severity.Invalid, V8, CheckIdentifier.Trainer); AddLine(Severity.Invalid, V8, CheckIdentifier.Trainer);
else if (validOT[lang] != pkm.OT_Name) else if (validOT[lang] != pkm.OT_Name)
AddLine(Severity.Invalid, V10, CheckIdentifier.Trainer); AddLine(Severity.Invalid, V10, CheckIdentifier.Trainer);