mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-11 15:35:20 -05:00
Add nickname clearing for batch editor
.IsNicknamed=False results in the species name being applied. Closes #839
This commit is contained in:
@@ -406,6 +406,8 @@ private static ModifyResult ProcessPKM(PKM PKM, IEnumerable<StringInstruction> F
|
||||
setRandomIVs(PKM, cmd);
|
||||
else if (cmd.Random)
|
||||
ReflectUtil.SetValue(PKM, cmd.PropertyName, cmd.RandomValue);
|
||||
else if (cmd.PropertyName == nameof(PKM.IsNicknamed) && cmd.PropertyValue.ToLower() == "false")
|
||||
{ PKM.IsNicknamed = false; PKM.Nickname = PKX.getSpeciesName(PKM.Species, PKM.Language); }
|
||||
else
|
||||
ReflectUtil.SetValue(PKM, cmd.PropertyName, cmd.PropertyValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user