Quantcast

Fixed power text

p3lim-52096 [08-22-08 - 11:38]
Fixed power text
Fixed Banzai support

git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@16 8c7459ed-49dc-4bc8-85d7-b6381a8f5413
Filename
oUF_P3lim/oUF_P3lim.lua
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