Quantcast

Sneak in a :PreUpdate()

p3lim [09-07-10 - 01:20]
Sneak in a :PreUpdate()
Filename
oUF_Experience.lua
diff --git a/oUF_Experience.lua b/oUF_Experience.lua
index d347223..11df969 100644
--- a/oUF_Experience.lua
+++ b/oUF_Experience.lua
@@ -19,7 +19,9 @@ end

 local function Update(self, event, unit)
 	if(self.unit ~= unit) then return end
+
 	local experience = self.Experience
+	if(experience.PreUpdate) then experience:PreUpdate(unit) end

 	if(Unbeneficial(self, unit)) then
 		experience:Hide()