Don't include language name as nickname on set export

This commit is contained in:
Kurt 2020-02-07 17:42:16 -08:00
parent 1bf22467de
commit 1cd23e6587

View file

@ -339,8 +339,8 @@ namespace PKHeX.Core
{
if (Nickname.Length == 0)
return specForm;
var name = SpeciesName.GetSpeciesNameGeneration(Species, LanguageID, Format);
if (name == Nickname)
bool isNicknamed = SpeciesName.IsNicknamedAnyLanguage(Species, Nickname, Format);
if (!isNicknamed)
return specForm;
return $"{Nickname} ({specForm})";
}