diff --git a/BadRotations.lua b/BadRotations.lua index 63207f9b6..521c6ee16 100644 --- a/BadRotations.lua +++ b/BadRotations.lua @@ -2,6 +2,13 @@ -- define br global that will hold the bot global background features local _, br = ... br._G = setmetatable({}, { __index = _G }) +br._G.GetSpellInfo = function(spellIdentifier) + local spellInfo = br._G.C_Spell.GetSpellInfo(spellIdentifier) + ---@diagnostic disable-next-line: redundant-return-value + return spellInfo.name, _, spellInfo.iconID, spellInfo.castTime, spellInfo.minRange, + ---@diagnostic disable-next-line: redundant-return-value + spellInfo.maxRange, spellInfo.spellID, spellInfo.originalIconID +end br.unlock = {} br.data = {} br.data.settings = {}