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?
Currently, a button using ClassicAPI’s attribute system does nothing when
type="spell"and no unit attribute is set:Maybe we can fallback to
CastSpellByNameif unit is not present and useC_Spell.CastAtUnitotherwise?