Update korean vc string checks

https://projectpokemon.org/home/forums/topic/43610-legality-about-gen-2/
This commit is contained in:
Kurt 2018-01-27 09:45:33 -08:00
parent f104df6386
commit 0e7350ee9e

View file

@ -667,7 +667,7 @@ namespace PKHeX.Core
if (str.Length > 5)
AddLine(Severity.Invalid, V38, CheckIdentifier.Trainer);
}
else if (pkm is PK2 pk2 && pk2.Korean)
else if (pkm.Korean && StringConverter.GetIsG2Korean(str))
{
if (str.Length > 5)
AddLine(Severity.Invalid, V38, CheckIdentifier.Trainer);
@ -689,6 +689,11 @@ namespace PKHeX.Core
if (str.Length > 5)
AddLine(Severity.Invalid, V1, CheckIdentifier.Trainer);
}
else if (pkm.Korean && StringConverter.GetIsG2Korean(str))
{
if (str.Length > 5)
AddLine(Severity.Invalid, V38, CheckIdentifier.Trainer);
}
else
{
AddLine(Severity.Invalid, V422, CheckIdentifier.Trainer);