mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
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:
parent
f25b4fea9c
commit
193c3e8d59
1 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue