actionbar: allow to put actions on bar in combat

skip custom drag stop events during combat to allow
client actions to be run instead of tainting the ui.
This commit is contained in:
shagu
2021-02-02 17:32:59 +01:00
parent 2e0c98d7ec
commit ae77e55330
+6
View File
@@ -283,6 +283,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
end
local function ButtonDrag(self)
-- skip during combat
if InCombatLockdown and InCombatLockdown() then return end
local self = self or this
if _G.LOCK_ACTIONBAR == "1" and not (pfUI_config.bars.shiftdrag == "1" and IsShiftKeyDown()) then return end
@@ -295,6 +298,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
end
local function ButtonDragStop(self)
-- skip during combat
if InCombatLockdown and InCombatLockdown() then return end
local self = self or this
if MacroFrame_SaveMacro then