Skip to content

Commit

Permalink
System - Fix for GetSpellInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne committed Aug 15, 2024
1 parent 74a0200 commit 833f3be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BadRotations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 833f3be

Please sign in to comment.