Fixed powertype changes
p3lim-52096 [10-14-08 - 18:24]
Fixed powertype changes
git-svn-id: svn://svn.wowinterface.com/oUF_P3lim-52/trunk@35 8c7459ed-49dc-4bc8-85d7-b6381a8f5413
diff --git a/oUF_P3lim/oUF_P3lim.lua b/oUF_P3lim/oUF_P3lim.lua
index 3c04754..db5b8b6 100644
--- a/oUF_P3lim/oUF_P3lim.lua
+++ b/oUF_P3lim/oUF_P3lim.lua
@@ -106,8 +106,8 @@ local function PreUpdatePower(self, event, unit)
druidmana.Text:SetText()
end
- druidmana:SetAlpha((ptype ~= 0) and 1 or 0)
- druidmana.Text:SetAlpha((ptype ~= 0) and 1 or 0)
+ druidmana:SetAlpha((ptype ~= 'MANA') and 1 or 0)
+ druidmana.Text:SetAlpha((ptype ~= 'MANA') and 1 or 0)
end
local function PostCreateAuraIcon(self, button, icons, index, debuff)
@@ -230,13 +230,13 @@ local function CreateStyle(self, unit)
self.DruidMana = CreateFrame('StatusBar', nil, self)
self.DruidMana:SetPoint('BOTTOM', self.Power, 'TOP')
self.DruidMana:SetStatusBarTexture(texture)
- self.DruidMana:SetStatusBarColor(unpack(self.colors.power[0]))
+ self.DruidMana:SetStatusBarColor(unpack(self.colors.power['MANA']))
self.DruidMana:SetHeight(1)
self.DruidMana:SetWidth(230)
self.DruidMana.Text = self.DruidMana:CreateFontString(nil, 'OVERLAY', 'GameFontNormalSmall')
self.DruidMana.Text:SetPoint('CENTER', self.DruidMana)
- self.DruidMana.Text:SetTextColor(unpack(self.colors.power[0]))
+ self.DruidMana.Text:SetTextColor(unpack(self.colors.power['MANA']))
end
elseif(unit == 'pet') then
self.Power.colorPower = true