WoWInterface SVN oUF_Experience

Compare Revisions

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

Rev 37 → Rev 36

oUF_Experience/oUF_Experience.lua
94,12 → 94,6
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
126,7 → 120,6
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