From 75ba8a031b87bcacf2f51f4ea03787c7cfa5f064 Mon Sep 17 00:00:00 2001 From: Munglunch Date: Tue, 13 Jan 2015 13:36:06 -0600 Subject: [PATCH] 5.4.186 --- .../Plugins/oUF_MageMagic/oUF_MageMagic.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_MageMagic/oUF_MageMagic.lua b/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_MageMagic/oUF_MageMagic.lua index c1d7286..9b80a15 100644 --- a/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_MageMagic/oUF_MageMagic.lua +++ b/Interface/AddOns/SVUI/libs/oUF_Villain/Plugins/oUF_MageMagic/oUF_MageMagic.lua @@ -220,6 +220,7 @@ end local Update = function(self, event, ...) local bar = self.MageMagic local spec = bar.CurrentSpec; + if(not spec) then return end if(bar.PreUpdate) then bar:PreUpdate(spec) end @@ -297,23 +298,21 @@ local Proxy = function(self, ...) if((not bar.CurrentSpec) or (bar.CurrentSpec ~= spec)) then ResetMagic(self); if(spec) then + bar.CurrentSpec = spec; if(spec == 3) then self:UnregisterEvent('UNIT_AURA', Update) self:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED', Update, true) --print("Switch To Frost") - bar.CurrentSpec = spec; elseif(spec == 2) then self:RegisterEvent('UNIT_AURA', Update) self:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED', Update, true) if(not bar.Ignite:IsShown()) then bar.Ignite:Show() end bar.Ignite.Bar:SetValue(0) --print("Switch To Fire") - bar.CurrentSpec = spec; elseif(spec == 1) then self:RegisterEvent('UNIT_AURA', Update) self:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED', Update, true) --print("Switch To Arcane") - bar.CurrentSpec = spec; end if(bar.PostTalentUpdate) then bar:PostTalentUpdate(spec) end else -- 1.7.9.5