Expose ClassicAPI macro spell resolver
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user