Skip to content

Commit

Permalink
deleted double "GetSpellInfo" and fixed resulting error of this...
Browse files Browse the repository at this point in the history
  • Loading branch information
fuba82 committed Aug 14, 2024
1 parent 37c7e28 commit 3f1b220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local addon, ns = ...

local IsAddOnLoaded = C_AddOns and C_AddOns.IsAddOnLoaded or IsAddOnLoaded
local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo or GetSpellInfo


local DefaultSettings = {
options = {
Expand Down Expand Up @@ -45,12 +44,13 @@ MageFood:RegisterEvent("PLAYER_REGEN_ENABLED")

local InCombatLockdown = _G.InCombatLockdown
local UnitAffectingCombat = _G.UnitAffectingCombat
local GetSpellInfo = _G.GetSpellInfo
local GetSpellLink = _G.GetSpellLink
local GetItemCount = _G.GetItemCount
local GetMacroIndexByName = _G.GetMacroIndexByName
local CreateMacro = _G.CreateMacro
local EditMacro = _G.EditMacro
local IsAddOnLoaded = _G.C_AddOns and _G.C_AddOns.IsAddOnLoaded or _G.IsAddOnLoaded
local GetSpellInfo = _G.C_Spell and _G.C_Spell.GetSpellInfo or _G.GetSpellInfo

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

0 comments on commit 3f1b220

Please sign in to comment.