Skip to content

Commit

Permalink
Fix issue with bind detection caused by Blizzard API change
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Sep 25, 2024
1 parent caf3a2a commit ac80478
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ItemCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1232,11 +1232,11 @@ Item.GetValue = Item.GetSellPrice
function Item:GetBindType()
return (select(14, self:GetInfo()))
end
function Item:DoesNotBind() return self:GetBindType() == LE_ITEM_BIND_NONE end
function Item:CanBind() return self:GetBindType() ~= LE_ITEM_BIND_NONE end
function Item:IsBindOnPickup() return self:GetBindType() == LE_ITEM_BIND_ON_ACQUIRE end
function Item:IsBindOnEquip() return self:GetBindType() == LE_ITEM_BIND_ON_EQUIP end
function Item:IsBindOnUse() return self:GetBindType() == LE_ITEM_BIND_ON_USE end
function Item:DoesNotBind() return self:GetBindType() == Enum.ItemBind.None end
function Item:CanBind() return self:GetBindType() ~= Enum.ItemBind.None end
function Item:IsBindOnPickup() return self:GetBindType() == Enum.ItemBind.OnAcquire end
function Item:IsBindOnEquip() return self:GetBindType() == Enum.ItemBind.OnEquip end
function Item:IsBindOnUse() return self:GetBindType() == Enum.ItemBind.OnUse end
Item.Binds = Item.CanBind
Item.IsBoP = Item.IsBindOnPickup
Item.IsBoE = Item.IsBindOnEquip
Expand Down

0 comments on commit ac80478

Please sign in to comment.