Skip to content

Commit ebfe541

Browse files
committed
fix valid slot for watcher's eye
1 parent 61a5ee2 commit ebfe541

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Classes/TradeQuery.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,13 @@ function TradeQueryClass:addChaosEquivalentPriceToItems(items)
879879
end
880880

881881
-- return valid slot for Watcher's Eye
882+
-- Tries to first return an existing watcher's eye slot if possible
882883
function TradeQueryClass:findValidSlotForWatchersEye()
884+
for _, socket in pairs(self.itemsTab.sockets) do
885+
if not socket.inactive and self.itemsTab.items[socket.selItemId].name:find("Watcher's Eye") then
886+
return socket
887+
end
888+
end
883889
local tmpWE=nil
884890
for _,v in ipairs(data.uniques.generated) do
885891
if v:find("Watcher's Eye") then

0 commit comments

Comments
 (0)