5.4.186
Munglunch [01-13-15 - 19:36]
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