dont try to steal bindings in combat, only ends up in errors anyway
This commit is contained in:
@@ -178,6 +178,7 @@ function BT4ActionBars:CreateBarOption(id, options)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BT4ActionBars:ReassignBindings()
|
function BT4ActionBars:ReassignBindings()
|
||||||
|
if InCombatLockdown() then return end
|
||||||
if not self.actionbars or not self.actionbars[1] then return end
|
if not self.actionbars or not self.actionbars[1] then return end
|
||||||
local frame = self.actionbars[1]
|
local frame = self.actionbars[1]
|
||||||
ClearOverrideBindings(frame)
|
ClearOverrideBindings(frame)
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ function PetBarMod:ToggleOptions()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function PetBarMod:ReassignBindings()
|
function PetBarMod:ReassignBindings()
|
||||||
|
if InCombatLockdown() then return end
|
||||||
if not self.bar or not self.bar.buttons then return end
|
if not self.bar or not self.bar.buttons then return end
|
||||||
ClearOverrideBindings(self.bar)
|
ClearOverrideBindings(self.bar)
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ function StanceBarMod:ApplyConfig()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function StanceBarMod:ReassignBindings()
|
function StanceBarMod:ReassignBindings()
|
||||||
|
if InCombatLockdown() then return end
|
||||||
if not self.bar or not self.bar.buttons then return end
|
if not self.bar or not self.bar.buttons then return end
|
||||||
ClearOverrideBindings(self.bar)
|
ClearOverrideBindings(self.bar)
|
||||||
for i = 1, min(#self.bar.buttons, 10) do
|
for i = 1, min(#self.bar.buttons, 10) do
|
||||||
|
|||||||
Reference in New Issue
Block a user