Quantcast

Add :ForceUpdate()

p3lim [09-07-10 - 01:31]
Add :ForceUpdate()
Filename
oUF_Reputation.lua
diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua
index cc484c0..aa30f23 100644
--- a/oUF_Reputation.lua
+++ b/oUF_Reputation.lua
@@ -22,9 +22,16 @@ local function Path(self, ...)
 	return (self.Reputation.Override or Update) (self, ...)
 end

+local function ForceUpdate(element)
+	return Path(element.__owner, 'ForceUpdate', element.__owner.unit)
+end
+
 local function Enable(self, unit)
 	local bar = self.Reputation
 	if(bar) then
+		bar.__owner = self
+		bar.ForceUpdate = ForceUpdate
+
 		self:RegisterEvent('UPDATE_FACTION', Path)

 		if(not bar:GetStatusBarTexture()) then