Quantcast

x

Steven Jackson [01-19-15 - 01:47]
x
Filename
Interface/AddOns/SVUI/framework/docks/dock_core.lua
diff --git a/Interface/AddOns/SVUI/framework/docks/dock_core.lua b/Interface/AddOns/SVUI/framework/docks/dock_core.lua
index bb7d1b3..7ae17b7 100644
--- a/Interface/AddOns/SVUI/framework/docks/dock_core.lua
+++ b/Interface/AddOns/SVUI/framework/docks/dock_core.lua
@@ -110,6 +110,11 @@ _G.ToggleSuperDockLeft = function(self, button)
 	if(button and IsAltKeyDown()) then
 		SV:StaticPopup_Show('RESETDOCKS_CHECK')
 	elseif(button and button == 'RightButton') then
+		if(InCombatLockdown()) then
+			ErrorSound()
+			SV:AddonMessage(ERR_NOT_IN_COMBAT)
+			return
+		end
 		ButtonSound()
 		local userSize = SV.db.Dock.dockLeftHeight
 		if(not SV.cache.Docks.LeftExpanded) then
@@ -143,6 +148,11 @@ _G.ToggleSuperDockRight = function(self, button)
 	if(button and IsAltKeyDown()) then
 		SV:StaticPopup_Show('RESETDOCKS_CHECK')
 	elseif(button and button == 'RightButton') then
+		if(InCombatLockdown()) then
+			ErrorSound()
+			SV:AddonMessage(ERR_NOT_IN_COMBAT)
+			return
+		end
 		ButtonSound()
 		local userSize = SV.db.Dock.dockRightHeight
 		if(not SV.cache.Docks.RightExpanded) then