mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
fix error
This commit is contained in:
@@ -32,11 +32,14 @@ local AVD_DECAY_RATE = 0.2
|
||||
|
||||
local function IsWearingShield()
|
||||
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
|
||||
return select(9, GetItemInfo(itemID))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function OnEvent(self)
|
||||
|
||||
Reference in New Issue
Block a user