From f811f76a06ad405ff1597261b0e63ffe56d3f1ec Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 27 Dec 2009 03:46:03 +0100 Subject: [PATCH] Avoid unit checking and rather hardcode it into layout --- oUF_P3lim.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 941518f..6667edf 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -73,8 +73,6 @@ local function updateCombo(self, event, unit) end local function updatePower(self, event, unit, bar, minVal, maxVal) - if(unit ~= 'target') then return end - if(maxVal ~= 0) then self.Health:SetHeight(20) bar:Show() @@ -312,8 +310,6 @@ local function style(self, unit) self.Buffs.initialAnchor = 'TOPLEFT' self.Buffs['growth-y'] = 'DOWN' self.PostCreateAuraIcon = createAura - - self.PostUpdatePower = updatePower end if(unit == 'target') then @@ -335,6 +331,8 @@ local function style(self, unit) self.CPoints:SetJustifyH('RIGHT') self.CPoints.unit = PlayerFrame.unit self:RegisterEvent('UNIT_COMBO_POINTS', updateCombo) + + self.PostUpdatePower = updatePower end if(unit == 'player') then -- 1.7.9.5