From 03a56afa661fe51a1480b898998a8aeed2eef39c Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 27 Oct 2014 15:08:25 +0100 Subject: [PATCH] UPDATE_FACTION is unitless --- oUF_Reputation.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua index 1ae8fe0..535d8f9 100644 --- a/oUF_Reputation.lua +++ b/oUF_Reputation.lua @@ -41,6 +41,8 @@ end oUF.Tags.SharedEvents.UPDATE_FACTION = true local function Update(self, event, unit) + if(self.unit ~= unit) then return end + local element = self.Reputation local name, standingID, _, _, _, id = GetWatchedFactionInfo() @@ -78,7 +80,7 @@ local function Enable(self, unit) element.__owner = self element.ForceUpdate = ForceUpdate - self:RegisterEvent('UPDATE_FACTION', Path) + self:RegisterEvent('UPDATE_FACTION', Path, true) if(not element:GetStatusBarTexture()) then element:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]]) -- 1.7.9.5