Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed for all classes

git-svn-id: svn://svn.wowinterface.com/oUF_BarFader-229/trunk@7 cbe42a47-3b53-4817-a5a9-47e79666164c
  • Loading branch information...
commit 482e90bdc9bcd57cb1bb36f32b08d7750a73f0ae 1 parent 9f1cff7
p3lim-52096 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 oUF_BarFader/oUF_BarFader.lua
View
5 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')
Please sign in to comment.
Something went wrong with that request. Please try again.