
Untitled
By: a guest on
May 27th, 2012 | syntax:
None | size: 0.65 KB | hits: 21 | expires: Never
if self.db.profile.soulbound then
local _,class = UnitClass('player')
if itemsBOP[itemId] ~= nil then
if itemType == 'Weapon' or itemType == 'Armor' then
local f = CreateFrame('GameTooltip', 'AVTooltip', UIParent, 'GameTooltipTemplate')
f:SetOwner(UIParent, 'ANCHOR_NONE')
f:SetHyperlink(link)
itemsBOP[itemId] = AVTooltipTextLeft2:GetText() == ITEM_BIND_ON_PICKUP or AVTooltipTextLeft3:GetText() == ITEM_BIND_ON_PICKUP or AVTooltipTextLeft4:GetText() == ITEM_BIND_ON_PICKUP
-- finally hide it again
f:Hide()
end
end
if itemsBOP[itemId] and AV:CannotUse(class, itemType, itemSubType) then
return true
end
end