Funny
I've started working on a cleaner-addon for my alts only yesterday and ran into exactly that problem
Seems there is no API for that. So I fell back to tooltip scanning. No ETA for a first version ... perhaps someone is quicker than me
Lua Code:
local cTip = CreateFrame("GameTooltip",name.."Tooltip",nil,"GameTooltipTemplate")
local function IsSoulbound(bag, slot)
cTip:SetOwner(UIParent, "ANCHOR_NONE")
cTip:SetBagItem(bag, slot)
cTip:Show()
for i = 1,cTip:NumLines() do
if(_G[name.."TooltipTextLeft"..i]:GetText()==ITEM_SOULBOUND) then
return true
end
end
cTip:Hide()
return false
end