From 4028d1c0e125e2f3798a7c90cf797f61629d38e4 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Fri, 12 Jul 2024 20:37:26 -0400 Subject: [PATCH] Fix recognizing soulbound tradeable items --- LootReserve.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LootReserve.lua b/LootReserve.lua index e017809..d162bda 100644 --- a/LootReserve.lua +++ b/LootReserve.lua @@ -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(); @@ -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");