Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed for all classes
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.wowinterface.com/oUF_BarFader-229/trunk@7 cbe42a47-3b53-4817-a5a9-47e79666164c
  • Loading branch information
p3lim-52096 committed Aug 30, 2008
1 parent 9f1cff7 commit 482e90b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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)
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 482e90b

Please sign in to comment.