From 0c6d053de2e76258e240a6874bc68fe365268d2a Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Mon, 24 Aug 2026 16:31:56 +0200 Subject: [PATCH] Expose ClassicAPI macro spell resolver --- api.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api.lua b/api.lua index af5d9e9..20dd1d3 100644 --- a/api.lua +++ b/api.lua @@ -31,6 +31,7 @@ API.aurapositional = type(_G.C_UnitAuras) == "table" API.spellinfo = type(_G.GetSpellInfo) == "function" API.actioninfo = type(_G.GetActionInfo) == "function" +API.macrospell = type(_G.GetMacroSpell) == "function" API.inventory = type(_G.C_Container) == "table" and type(_G.C_Container.GetContainerNumFreeSlots) == "function" @@ -134,6 +135,12 @@ API.GetActionInfo = function(slot) end end +API.GetMacroSpell = function(slot) + if API.macrospell then + return _G.GetMacroSpell(slot) + end +end + API.GetAuraDataByIndex = function(unit, index, filter) if API.auras then return _G.C_UnitAuras.GetAuraDataByIndex(unit, index, filter)