diff --git a/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua b/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua index 17403b043b..814a76c085 100644 --- a/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua +++ b/ElvUI_Libraries/Core/oUF_Plugins/oUF_Swing.lua @@ -45,7 +45,7 @@ local CreateFrame = CreateFrame local GetTime = GetTime local UnitGUID = UnitGUID -local GetSpellInfo = C_Spell.GetSpellInfo or GetSpellInfo +local GetSpellInfo = (C_Spell and C_Spell.GetSpellInfo) or GetSpellInfo local UnitCastingInfo = UnitCastingInfo local UnitRangedDamage = UnitRangedDamage local UnitAttackSpeed = UnitAttackSpeed diff --git a/ElvUI_Options/Core/StyleFilters.lua b/ElvUI_Options/Core/StyleFilters.lua index 502eb49b0c..e9eadb130c 100644 --- a/ElvUI_Options/Core/StyleFilters.lua +++ b/ElvUI_Options/Core/StyleFilters.lua @@ -15,7 +15,7 @@ local GetDifficultyInfo = GetDifficultyInfo local GetInstanceInfo = GetInstanceInfo local GetRealZoneText = GetRealZoneText local GetSpellInfo = C_Spell and C_Spell.GetSpellInfo or GetSpellInfo -local GetSpellTexture = C_Spell and C_Spell.GetSpellTexture or GetSpellInfo +local GetSpellTexture = C_Spell and C_Spell.GetSpellTexture or GetSpellTexture local tIndexOf = tIndexOf local C_Map_GetMapInfo = C_Map.GetMapInfo