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
This commit is contained in:
Kurt 2017-11-21 18:32:23 -08:00
parent f25b4fea9c
commit 193c3e8d59

View file

@ -325,7 +325,14 @@ namespace PKHeX.WinForms.Controls
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)