Skip to content

Single Button Assist hotkey sometimes showing in CDM. #15

@PyroPope

Description

@PyroPope

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions