actionbar: only set attributes while not in combat

This commit is contained in:
shagu
2019-07-19 16:36:53 +02:00
parent 84a1bd1052
commit e0a94af285
+1 -1
View File
@@ -260,7 +260,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
if event == "ACTIONBAR_UPDATE_STATE" then return end
-- handle secure action button templates (tbc+)
if self.SetAttribute then
if self.SetAttribute and InCombatLockdown and not InCombatLockdown() then
if self.bar == 11 then
self:SetAttribute("type", "spell")
self:SetAttribute('spell', select(2, GetShapeshiftFormInfo(id)))