Fixed for all classes
p3lim-52096 [08-30-08 - 16:28]
Fixed for all classes
git-svn-id: svn://svn.wowinterface.com/oUF_BarFader-229/trunk@7 cbe42a47-3b53-4817-a5a9-47e79666164c
diff --git a/oUF_BarFader/oUF_BarFader.lua b/oUF_BarFader/oUF_BarFader.lua
index 0d13e78..da75bbd 100644
--- a/oUF_BarFader/oUF_BarFader.lua
+++ b/oUF_BarFader/oUF_BarFader.lua
@@ -1,5 +1,6 @@
local function UpdateElement(self, unit)
if(unit == 'player' and self.BarFade) then
+ local l, class = UnitClass('player')
local notFull = (UnitHealth('player') ~= UnitHealthMax('player')) or
(UnitPowerType('player') ~= 1 and UnitMana('player') ~= UnitManaMax('player')) or
(UnitPowerType('player') == 1 and UnitMana('player') > 0)
@@ -59,6 +60,10 @@ oUF:RegisterInitCallback(function(self)
event:RegisterEvent('UNIT_HAPPINESS')
event:RegisterEvent('UNIT_HEALTH')
event:RegisterEvent('UNIT_MANA')
+ event:RegisterEvent('UNIT_ENERGY')
+ event:RegisterEvent('UNIT_FOCUS')
+ event:RegisterEvent('UNIT_RAGE')
+ event:RegisterEvent('UNIT_RUNIC_POWER')
event:RegisterEvent('UNIT_TARGET')
event:RegisterEvent('UNIT_SPELLCAST_START')
event:RegisterEvent('UNIT_SPELLCAST_STOP')