Skip to content

Allow spell frame attributes without a unit #18

Description

@peterkmg

Currently, a button using ClassicAPI’s attribute system does nothing when type="spell" and no unit attribute is set:

local button = CreateFrame("Button")
button:SetAttribute("type", "spell")
button:SetAttribute("spell", "Lightwell")
button:Click()

Maybe we can fallback to CastSpellByName if unit is not present and use C_Spell.CastAtUnit otherwise?

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