From 61dd99feef3cccbdb119271b4e6261e68760923b Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 22 Dec 2016 22:03:32 -0800 Subject: [PATCH] Set current stat level on drag&drop to party Other battle stats (HP/Atk...) are already set, this is the only one that is not set. The other setPartySlot call is for the main tabs editing, which sets the stat level & battle stats at the end of the specific method. Closes #663 --- PKHeX/MainWindow/Main.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PKHeX/MainWindow/Main.cs b/PKHeX/MainWindow/Main.cs index 23c89d17a..da1912126 100644 --- a/PKHeX/MainWindow/Main.cs +++ b/PKHeX/MainWindow/Main.cs @@ -4390,7 +4390,10 @@ namespace PKHeX { SAV.deletePartySlot(slotSourceSlotNumber-30); return; } if (pk.Stat_HPMax == 0) // Without Stats (Box) + { pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm))); + pk.Stat_Level = pk.CurrentLevel; + } SAV.setPartySlot(pk, o); } public static void setPKMtoDestination(SaveFile SAV, PKM pk) @@ -4405,7 +4408,10 @@ namespace PKHeX slotDestinationSlotNumber = 30 + SAV.PartyCount; } if (pk.Stat_HPMax == 0) // Without Stats (Box/File) + { pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm))); + pk.Stat_Level = pk.CurrentLevel; + } SAV.setPartySlot(pk, o); }