-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathInit.lua
29 lines (24 loc) · 792 Bytes
/
Init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---@class BuffOverlay: AceModule
BuffOverlay = LibStub("AceAddon-3.0"):NewAddon("BuffOverlay", "AceConsole-3.0")
-- Localization Table
BuffOverlay.L = {}
-- Make missing translations available
setmetatable(BuffOverlay.L, {__index = function(t, k)
local v = tostring(k)
rawset(t, k, v)
return v
end})
-- Definitions
BuffOverlay.GetSpellInfo = function(spellID)
if not spellID then
return nil
end
-- Classic flavors still use old GetSpellInfo
if GetSpellInfo then
return GetSpellInfo(spellID)
end
local spellInfo = C_Spell.GetSpellInfo(spellID)
if spellInfo then
return spellInfo.name, nil, spellInfo.iconID, spellInfo.castTime, spellInfo.minRange, spellInfo.maxRange, spellInfo.spellID, spellInfo.originalIconID
end
end