mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 00:37:11 +00:00
Don't include language name as nickname on set export
This commit is contained in:
parent
1bf22467de
commit
1cd23e6587
1 changed files with 2 additions and 2 deletions
|
@ -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})";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue