fix units
Steven Jackson [08-24-14 - 23:26]
diff --git a/Interface/AddOns/SVUI/packages/unit/SVUnit.lua b/Interface/AddOns/SVUI/packages/unit/SVUnit.lua
index 78660c6..302d168 100644
--- a/Interface/AddOns/SVUI/packages/unit/SVUnit.lua
+++ b/Interface/AddOns/SVUI/packages/unit/SVUnit.lua
@@ -156,6 +156,7 @@ do
end
function oUF_SuperVillain:DisableBlizzard(unit)
+ if(not SuperVillain.db.SVUnit.enable) then return end
if (not unit) or InCombatLockdown() then return end
if (unit == "player") then
@@ -1314,10 +1315,12 @@ BUILD FUNCTION / UPDATE
##########################################################
]]--
function MOD:ReLoad()
+ if(not SuperVillain.db.SVUnit.enable) then return end
self:RefreshUnitFrames()
end
-function MOD:PriorityLoad()
+function MOD:Load()
+ if(not SuperVillain.db.SVUnit.enable) then return end
self:RefreshUnitColors()
local SVUI_UnitFrameParent = CreateFrame("Frame", "SVUI_UnitFrameParent", SuperVillain.UIParent, "SecureHandlerStateTemplate")
@@ -1327,7 +1330,7 @@ function MOD:PriorityLoad()
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("PLAYER_REGEN_DISABLED")
- if(self.db.disableBlizzard) then
+ if(SuperVillain.db.SVUnit.disableBlizzard) then
self:KillBlizzardRaidFrames()
NewHook("CompactUnitFrame_RegisterEvents", CompactUnitFrame_UnregisterEvents)
NewHook("UnitFrameThreatIndicator_Initialize", UnitFrameThreatIndicator_Hook)