From 9df3e70c39e56fa87cbd274ee7ffcbb9acc78c35 Mon Sep 17 00:00:00 2001 From: Logan Payton Date: Wed, 16 May 2018 13:32:28 -0400 Subject: [PATCH] Need to find out whats using UnitAura nil values --- !Compatibility/api/wowAPI.lua | 12 ++++++++---- ElvUI/Libraries/oUF/elements/auras.lua | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/!Compatibility/api/wowAPI.lua b/!Compatibility/api/wowAPI.lua index bdf0ad4..8929cc2 100644 --- a/!Compatibility/api/wowAPI.lua +++ b/!Compatibility/api/wowAPI.lua @@ -145,11 +145,15 @@ function UnitAura(unit, i, filter) end if not filter or match(filter, "(HELPFUL)") then - local name, rank, aura, count, duration, maxDuration = UnitBuff(unit, i, filter) - return name, rank, aura, count, nil, duration or 0, maxDuration or 0 + -- local name, rank, aura, count, duration, maxDuration = UnitBuff(unit, i, filter) + -- 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 - local name, rank, aura, count, dType, duration, maxDuration = UnitDebuff(unit, i, filter) - return name, rank, aura, count, dType, duration or 0, maxDuration or 0 + -- local name, rank, aura, count, dType, duration, maxDuration = UnitDebuff(unit, i, filter) + -- 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 diff --git a/ElvUI/Libraries/oUF/elements/auras.lua b/ElvUI/Libraries/oUF/elements/auras.lua index 6b26298..aff17bf 100644 --- a/ElvUI/Libraries/oUF/elements/auras.lua +++ b/ElvUI/Libraries/oUF/elements/auras.lua @@ -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 local size = element.size or 16 - button:SetSize(size, size) + button:SetWidth(size) + button:SetHeight(size) button:EnableMouse(not element.disableMouse) button:SetID(index)