Update Items.lua (#4)

Add "Realm Bound" to IsSoulbound check
This commit is contained in:
RealityWinner
2023-06-06 05:37:27 -04:00
committed by GitHub
parent bd20d5d614
commit 99da4fce66
+2 -2
View File
@@ -189,11 +189,11 @@ function TSMAPI:IsSoulbound(bag, slot)
for id=1, scanTooltip:NumLines() do
local text = _G["TSMSoulboundScanTooltipTextLeft" .. id]
text = text and text:GetText()
if text and ((text == ITEM_BIND_ON_PICKUP and id < 4) or text == ITEM_SOULBOUND or text == ITEM_BIND_QUEST) then
if text and ((text == ITEM_BIND_ON_PICKUP and id < 4) or text == ITEM_SOULBOUND or text == ITEM_BIND_QUEST or text == ITEM_ACCOUNTBOUND) then
resultsCache[slotID] = {soulbound=true}
break
end
end
resultsCache[slotID].lastUpdate = GetTime()
return resultsCache[slotID].soulbound
end
end