Change default ShowdownSet import for empty moves

Don't replace current moveset if no moves requested.
This commit is contained in:
Kurt 2022-06-30 17:24:01 -07:00
parent 5c0498ddbe
commit daf9ad76c9

View file

@ -168,7 +168,8 @@ public static class CommonEdits
{
pk.Species = Math.Min(pk.MaxSpeciesID, Set.Species);
pk.Form = Set.Form;
pk.SetMoves(Set.Moves, true);
if (Set.Moves[0] != 0)
pk.SetMoves(Set.Moves, true);
pk.ApplyHeldItem(Set.HeldItem, Set.Format);
pk.CurrentLevel = Set.Level;
pk.CurrentFriendship = Set.Friendship;