mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-25 14:14:11 -05: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user