mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
fix error
This commit is contained in:
@@ -32,10 +32,13 @@ local AVD_DECAY_RATE = 0.2
|
|||||||
|
|
||||||
local function IsWearingShield()
|
local function IsWearingShield()
|
||||||
local slotID = GetInventorySlotInfo("SecondaryHandSlot")
|
local slotID = GetInventorySlotInfo("SecondaryHandSlot")
|
||||||
local _, _, itemID = find(GetInventoryItemLink("player", slotID), "(%d+):")
|
local link = GetInventoryItemLink("player", slotID)
|
||||||
|
if link then
|
||||||
|
local _, _, itemID = find(link, "(%d+):")
|
||||||
|
|
||||||
if itemID then
|
if itemID then
|
||||||
return select(9, GetItemInfo(itemID))
|
return select(9, GetItemInfo(itemID))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user