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) if (Nickname.Length == 0)
return specForm; return specForm;
var name = SpeciesName.GetSpeciesNameGeneration(Species, LanguageID, Format); bool isNicknamed = SpeciesName.IsNicknamedAnyLanguage(Species, Nickname, Format);
if (name == Nickname) if (!isNicknamed)
return specForm; return specForm;
return $"{Nickname} ({specForm})"; return $"{Nickname} ({specForm})";
} }