WoWInterface SVN oUF_Experience

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 36 to Rev 37
    Reverse comparison

Rev 36 → Rev 37

oUF_Experience/oUF_Experience.lua
94,6 → 94,12
end
end
 
local function PetCheck(self, event, unit)
if(unit == 'player') then
LevelCheck(self)
end
end
 
local function Enable(self, unit)
local bar = self.Experience
if(bar) then
120,6 → 126,7
if(select(2, UnitClass('player')) == 'HUNTER') then
if(UnitLevel(unit) ~= MAX_PLAYER_LEVEL) then
self:RegisterEvent('UNIT_PET_EXPERIENCE', LevelCheck)
self:RegisterEvent('UNIT_PET', PetCheck)
else
bar:Hide()
end