From 589957a5478a8ff12b20a05b8969e64c7dcc5e92 Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Sun, 19 Oct 2014 17:11:49 -0500 Subject: [PATCH] 5 --- .../Plugins/oUF_AuraBars/oUF_AuraBars.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_AuraBars/oUF_AuraBars.lua b/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_AuraBars/oUF_AuraBars.lua index 2eb382d..eeaa1ef 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_AuraBars/oUF_AuraBars.lua +++ b/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_AuraBars/oUF_AuraBars.lua @@ -295,7 +295,7 @@ local function Update(self, event, unit) -- Show and configure bars for buffs/debuffs. local bars = auraBars.bars if lastAuraIndex == 0 then - self.AuraBars:SetHeight(1) + auraBars:SetHeight(1) end for index = 1 , lastAuraIndex do @@ -309,12 +309,12 @@ local function Update(self, event, unit) end if index == lastAuraIndex then - if self.AuraBars.down then - self.AuraBars:SetHeight(self.AuraBars:GetTop() - frame:GetBottom()) - elseif frame:GetTop() and self.AuraBars:GetBottom() then - self.AuraBars:SetHeight(frame:GetTop() - self.AuraBars:GetBottom()) + if(auraBars.down and (auraBars:GetTop() and frame:GetBottom())) then + auraBars:SetHeight(auraBars:GetTop() - frame:GetBottom()) + elseif(frame:GetTop() and auraBars:GetBottom()) then + auraBars:SetHeight(frame:GetTop() - auraBars:GetBottom()) else - self.AuraBars:Height(20) + auraBars:Height(20) end end -- 1.7.9.5