mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 16:27:21 +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)
|
||||
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})";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue