Browse Source

Update Items.lua (#4)

Add "Realm Bound" to IsSoulbound check
pull/5/head
RealityWinner 3 years ago committed by GitHub
parent
commit
99da4fce66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      TradeSkillMaster/Util/Items.lua

4
TradeSkillMaster/Util/Items.lua

@ -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

Loading…
Cancel
Save