Quantcast

Pet happiness updating now fixed completely. Updates properly in combat as well as out of combat

Lanerra [03-07-11 - 00:15]
Pet happiness updating now fixed completely. Updates properly in combat as well as out of combat
Filename
oUF_Lanerra.lua
diff --git a/oUF_Lanerra.lua b/oUF_Lanerra.lua
index 29b6d82..1aa2c7d 100644
--- a/oUF_Lanerra.lua
+++ b/oUF_Lanerra.lua
@@ -465,8 +465,10 @@ local Stylish = function(self, unit, isSingle)
     self.Power.colorHappiness = unit == 'pet'

 	-- We like to keep things smooth around here
-	self.Power.frequentUpdates = 0.2
-    self.Power.Smooth = true
+    if (unit ~= 'pet') then
+        self.Power.frequentUpdates = 0.2
+        self.Power.Smooth = true
+    end

 	self.Power:SetParent(self)
 	self.Power:SetPoint('BOTTOM')
@@ -510,8 +512,6 @@ local Stylish = function(self, unit, isSingle)
         end
 	end

---~     self.Power.PostUpdate = UpdatePower
-
 	if (unit == 'targettarget') then
 		self.Power:Hide()
 		self.Power.Show = self.Power.Hide