Skip to content

Commit 3f1b220

Browse files
committed
deleted double "GetSpellInfo" and fixed resulting error of this...
1 parent 37c7e28 commit 3f1b220

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Core.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
local addon, ns = ...
22

3-
local IsAddOnLoaded = C_AddOns and C_AddOns.IsAddOnLoaded or IsAddOnLoaded
4-
local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo or GetSpellInfo
3+
54

65
local DefaultSettings = {
76
options = {
@@ -45,12 +44,13 @@ MageFood:RegisterEvent("PLAYER_REGEN_ENABLED")
4544

4645
local InCombatLockdown = _G.InCombatLockdown
4746
local UnitAffectingCombat = _G.UnitAffectingCombat
48-
local GetSpellInfo = _G.GetSpellInfo
4947
local GetSpellLink = _G.GetSpellLink
5048
local GetItemCount = _G.GetItemCount
5149
local GetMacroIndexByName = _G.GetMacroIndexByName
5250
local CreateMacro = _G.CreateMacro
5351
local EditMacro = _G.EditMacro
52+
local IsAddOnLoaded = _G.C_AddOns and _G.C_AddOns.IsAddOnLoaded or _G.IsAddOnLoaded
53+
local GetSpellInfo = _G.C_Spell and _G.C_Spell.GetSpellInfo or _G.GetSpellInfo
5454

5555
local spellNameConjureRefreshment = GetSpellInfo(190336) or GetSpellInfo(42955) or "Conjure Refreshment"; -- get Localized Spell Name or just use Conjure Refreshment if nothing found
5656
local TaintableDelayedEvent = false;

0 commit comments

Comments
 (0)