Commit 0a8fbbc7 authored by Blazeflack's avatar Blazeflack

Fixed error relating to the usage of UnitBuff or UnitDebuff

parent 50d3086a
......@@ -18,8 +18,6 @@ local GetTime = GetTime
local GetWeaponEnchantInfo = GetWeaponEnchantInfo
local hooksecurefunc = hooksecurefunc
local UnitAura = UnitAura
local UnitBuff = UnitBuff
local UnitDebuff = UnitDebuff
local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
local DebuffTypeColor = DebuffTypeColor
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
......@@ -127,18 +125,14 @@ function VAT:UpdateAura(button, index)
button.time:SetText("")
button:SetScript("OnUpdate", nil)
end
if UnitBuff('player',name) then
isDebuff = false
elseif UnitDebuff('player',name) then
isDebuff = true
end
if filter == 'HARMFUL' then
isDebuff = true
local color = DebuffTypeColor[dtype or ""]
-- Match color of statusbar border to color of the border of the debuff aura
button.Holder:SetBackdropBorderColor(color.r, color.g, color.b)
else
isDebuff = false
button.Holder:SetBackdropBorderColor(unpack(E.media.bordercolor))
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment