Skip to content

Commit 0a0a2c8

Browse files
committed
Fixed trading more than one item
1 parent d553cbf commit 0a0a2c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

VGT-MasterLooter.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -1861,19 +1861,19 @@ function lootTracker:TRADE_SHOW()
18611861
if itemData.winner and name == itemData.winner and not itemData.traded then
18621862
VGT.LogTrace("%s needs to be traded %s", name, itemData.link)
18631863
local bagId, slotId = self:FindEligibleItemLoc(itemData.id)
1864+
---@class TradeInfo
1865+
self.trades[targetSlot] = {
1866+
itemData = itemData,
1867+
slotId = slotId,
1868+
bagId = bagId
1869+
}
18641870
if bagId ~= nil and slotId ~= nil then
18651871
local thisSlot = targetSlot
18661872
C_Timer.After(thisSlot / 10, function()
18671873
VGT.LogTrace("Assigning %s (bag %s, slot %s) to trade slot %s", itemData.link, bagId, slotId, targetSlot)
18681874
ClearCursor()
18691875
C_Container.PickupContainerItem(bagId, slotId)
18701876
ClickTradeButton(thisSlot)
1871-
---@class TradeInfo
1872-
self.trades[thisSlot] = {
1873-
itemData = itemData,
1874-
slotId = slotId,
1875-
bagId = bagId
1876-
}
18771877
end)
18781878
targetSlot = targetSlot + 1
18791879
end

0 commit comments

Comments
 (0)