mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
Need to find out whats using UnitAura nil values
This commit is contained in:
@@ -145,11 +145,15 @@ function UnitAura(unit, i, filter)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not filter or match(filter, "(HELPFUL)") then
|
if not filter or match(filter, "(HELPFUL)") then
|
||||||
local name, rank, aura, count, duration, maxDuration = UnitBuff(unit, i, filter)
|
-- local name, rank, aura, count, duration, maxDuration = UnitBuff(unit, i, filter)
|
||||||
return name, rank, aura, count, nil, duration or 0, maxDuration or 0
|
-- return name, rank, aura, count, nil, duration or 0, maxDuration or 0
|
||||||
|
local icon, count, debuffType = UnitBuff(unit, i, filter)
|
||||||
|
return icon, count, icon, count, debuffType, 0, 0
|
||||||
else
|
else
|
||||||
local name, rank, aura, count, dType, duration, maxDuration = UnitDebuff(unit, i, filter)
|
-- local name, rank, aura, count, dType, duration, maxDuration = UnitDebuff(unit, i, filter)
|
||||||
return name, rank, aura, count, dType, duration or 0, maxDuration or 0
|
-- return name, rank, aura, count, dType, duration or 0, maxDuration or 0
|
||||||
|
local icon, count, debuffType = UnitDebuff(unit, i, filter)
|
||||||
|
return icon, count, icon, count, debuffType, 0, 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -211,7 +211,8 @@ local function updateIcon(element, unit, index, offset, filter, isDebuff, visibl
|
|||||||
if button.count then button.count:SetText(count > 1 and count) end
|
if button.count then button.count:SetText(count > 1 and count) end
|
||||||
|
|
||||||
local size = element.size or 16
|
local size = element.size or 16
|
||||||
button:SetSize(size, size)
|
button:SetWidth(size)
|
||||||
|
button:SetHeight(size)
|
||||||
|
|
||||||
button:EnableMouse(not element.disableMouse)
|
button:EnableMouse(not element.disableMouse)
|
||||||
button:SetID(index)
|
button:SetID(index)
|
||||||
|
|||||||
Reference in New Issue
Block a user