mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-06 05:27:14 -05:00
Update nickname text check
Generation specific names now show up legal if they are correct (ie all caps)
This commit is contained in:
parent
865efe9c77
commit
1b3294c8b3
|
|
@ -280,8 +280,8 @@ private void verifyNickname()
|
|||
else
|
||||
{
|
||||
// Can't have another language name if it hasn't evolved or wasn't a language-traded egg.
|
||||
bool match = (pkm.WasTradedEgg || Legal.getHasEvolved(pkm)) && PKX.SpeciesLang.Any(lang => lang[pkm.Species] == nickname)
|
||||
|| PKX.SpeciesLang[pkm.Language][pkm.Species] == nickname;
|
||||
bool match = PKX.getSpeciesNameGeneration(pkm.Species, pkm.Language, pkm.Format) == nickname;
|
||||
match |= (pkm.WasTradedEgg || Legal.getHasEvolved(pkm)) && PKX.getIsNicknamedAnyLanguage(pkm.Species, nickname, pkm.Format);
|
||||
|
||||
if (!match)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user