Add :ForceUpdate()
p3lim [09-06-10 - 20:47]
diff --git a/oUF_Experience.lua b/oUF_Experience.lua
index bc83b61..6e4d476 100644
--- a/oUF_Experience.lua
+++ b/oUF_Experience.lua
@@ -62,9 +62,16 @@ local function Path(self, ...)
return (self.Experience.Override or Update) (self, ...)
end
+local function ForceUpdate(element)
+ return Path(element.__owner, 'ForceUpdate', element.__parent.unit)
+end
+
local function Enable(self, unit)
local experience = self.Experience
if(experience) then
+ experience.__parent = self
+ experience.ForceUpdate = ForceUpdate
+
self:RegisterEvent('PLAYER_XP_UPDATE', Path)
self:RegisterEvent('PLAYER_LEVEL_UP', Path)
self:RegisterEvent('UNIT_PET', Path)