|
local slotType, id = GetActionInfo(slot) |
|
local spellID |
|
if slotType == "spell" then |
|
spellID = id |
|
elseif slotType == "macro" and id then |
|
-- GetMacroSpell works for macro-index based entries. |
|
-- For direct spell macros, GetActionInfo returns the spell ID as id. |
|
local macroSpell = GetMacroSpell(id) |
|
spellID = macroSpell or (id > 0 and id) or nil |
|
end |
|
if spellID then |
It might be worth it to explicitly exclude SBA from the check here so it doesn't return SBA when looking for the keybinding.
Changing L4255 to
local slotType, id, subType = GetActionInfo(slot)
Changing L4265 to
if spellID and subType ~= "assistedcombat" then
I am sure there are loads of other ways also, but just a suggestion.
EllesmereUI/EllesmereUICooldownManager/EllesmereUICooldownManager.lua
Lines 4255 to 4265 in c2687d9
It might be worth it to explicitly exclude SBA from the check here so it doesn't return SBA when looking for the keybinding.
Changing L4255 to
local slotType, id, subType = GetActionInfo(slot)Changing L4265 to
if spellID and subType ~= "assistedcombat" thenI am sure there are loads of other ways also, but just a suggestion.