Quantcast

Fixed pet update

p3lim-52096 [10-10-08 - 17:12]
Fixed pet update

git-svn-id: svn://svn.wowinterface.com/oUF_Experience-227/trunk@16 f81be506-7a38-4956-9b9f-d707db2888a5
Filename
oUF_Experience/oUF_Experience.lua
diff --git a/oUF_Experience/oUF_Experience.lua b/oUF_Experience/oUF_Experience.lua
index 7f203c0..8376e81 100644
--- a/oUF_Experience/oUF_Experience.lua
+++ b/oUF_Experience/oUF_Experience.lua
@@ -142,12 +142,19 @@ function oUF:UNIT_PET_EXPERIENCE(event, unit)
 	end
 end

+function oUF:UNIT_PET(event, unit)
+	if(unit == 'pet') then
+		self.UNIT_PET_EXPERIENCE(self, event, unit)
+	end
+end
+
 oUF:RegisterInitCallback(function(self)
 	local experience = self.Experience
 	if(experience) then
 		self:RegisterEvent('PLAYER_XP_UPDATE')
 		self:RegisterEvent('UNIT_PET_EXPERIENCE')
 		self:RegisterEvent('UPDATE_FACTION')
+		self:RegisterEvent('UNIT_PET')
 		self.UPDATE_FACTION = self.PLAYER_XP_UPDATE

 		if(not experience:GetStatusBarTexture()) then