Expose ClassicAPI macro spell resolver

This commit is contained in:
2026-08-24 16:31:56 +02:00
parent 1e5c7202b5
commit 0c6d053de2
+7
View File
@@ -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)