Skip to content

Commit

Permalink
Fix recognizing soulbound tradeable items
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jul 13, 2024
1 parent 11bb30b commit 4028d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LootReserve.lua
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ function LootReserve:IsItemSoulbound(bag, slot)
return false;
end

--[[local]] function ReadDuration(text)
local function ReadDuration(text)
if not LootReserve.TooltipScanner then
LootReserve.TooltipScanner = CreateFrame("GameTooltip", "LootReserveTooltipScanner", nil, "GameTooltipTemplate");
LootReserve.TooltipScanner:Hide();
Expand Down Expand Up @@ -969,7 +969,7 @@ function LootReserve:GetSoulboundTradeableDuration(bag, slot)
end

if not self.TooltipScanner.SoulboundTradeable then
self.TooltipScanner.SoulboundTradeable = BIND_TRADE_TIME_REMAINING:gsub("[().+-]", "%%%0"):gsub("%%%%s", "(.+)");
self.TooltipScanner.SoulboundTradeable = BIND_TRADE_TIME_REMAINING:gsub("[().+-]", "%%%0"):gsub("%%s", "(.+)");
end

self.TooltipScanner:SetOwner(WorldFrame, "ANCHOR_NONE");
Expand Down

0 comments on commit 4028d1c

Please sign in to comment.