From 6a093f642cc1bedc35397340fce6a1e11943d136 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Fri, 22 Aug 2008 11:38:45 +0000 Subject: [PATCH] Fixed power text Fixed Banzai support git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@16 8c7459ed-49dc-4bc8-85d7-b6381a8f5413 --- oUF_P3lim/oUF_P3lim.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua index 9e52781..34c1457 100644 --- a/oUF_P3lim/oUF_P3lim.lua +++ b/oUF_P3lim/oUF_P3lim.lua @@ -79,7 +79,7 @@ local function updateHealth(self, event, unit, bar, min, max) end local function updatePower(self, event, unit, bar, min, max) - if(unit ~= 'player' or unit ~= 'pet') then + if(unit ~= 'player' and unit ~= 'pet') then bar.value:Hide() else if(min == 0) then @@ -300,6 +300,13 @@ local function styleFunc(self, unit) self.DebuffHighlightBackdrop = true self.DebuffHighlightFilter = true + self.Banzai = function(self, unit, aggro) + if(aggro == 1) then + self.Health:SetStatusBarColor(1, 0, 0) + else + self.Health:SetStatusBarColor(0.25, 0.25, 0.35) + end + end self.UNIT_NAME_UPDATE = updateName self.PostCreateAuraIcon = auraIcon -- 1.7.9.5