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)