From 193c3e8d597efea12172a04ece1f2d8cf8e79be6 Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 21 Nov 2017 18:32:23 -0800 Subject: [PATCH] set box info for right click box legality checks slot/box data wasn't being set, causing any 'party only' forme checks to be prevented --- PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs b/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs index 252ec8034..e04d3fd64 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SlotChangeManager.cs @@ -325,7 +325,14 @@ public PKM GetPKM(SlotChange slot) int o = slot.Offset; if (o < 0) return slot.PKM; - return slot.IsParty ? SAV.GetPartySlot(o) : SAV.GetStoredSlot(o); + + if (slot.IsParty) + return SAV.GetPartySlot(o); + + var pk = SAV.GetStoredSlot(o); + pk.Slot = slot.Slot; + pk.Box = slot.Box; + return pk; } private void SetPKM(PKM pk, bool src, Image img) => SetPKM(pk, src ? DragInfo.Source : DragInfo.Destination, src, img); public void SetPKM(PKM pk, SlotChange slot, bool src, Image img)