From ac80478434f620b8cd64b1f502d60e27feac88e8 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Wed, 25 Sep 2024 16:41:35 -0400 Subject: [PATCH] Fix issue with bind detection caused by Blizzard API change --- ItemCache.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ItemCache.lua b/ItemCache.lua index db28e73..82dbb46 100644 --- a/ItemCache.lua +++ b/ItemCache.lua @@ -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