Skip to content

Commit

Permalink
Merge pull request #749 from Flamanis/use-C_Spell-for-Spell-link
Browse files Browse the repository at this point in the history
Add GetSpellLink local to top of files
  • Loading branch information
Tercioo authored Jun 8, 2024
2 parents 9c56fa3 + 8ea661e commit 2ac06d0
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions classes/class_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
local IsInRaid = IsInRaid
local IsInGroup = IsInGroup
local stringReplace = Details.string.replace
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local

local Loc = LibStub("AceLocale-3.0"):GetLocale("Details")

Expand Down
1 change: 1 addition & 0 deletions classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
local GameTooltip = GameTooltip --api local
local IsInRaid = IsInRaid --api local
local IsInGroup = IsInGroup --api local
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local

local GetSpellInfo = Details222.GetSpellInfo --api local
local _GetSpellInfo = Details.getspellinfo --details api
Expand Down
1 change: 1 addition & 0 deletions classes/class_utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ local _UnitAura = UnitAura
local UnitGUID = UnitGUID
local _UnitName = UnitName
local format = _G.format
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local

local UnitIsUnit = UnitIsUnit

Expand Down
1 change: 1 addition & 0 deletions core/plugins_raid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
local _math_floor = math.floor --lua local
local _cstr = string.format --lua local
local _UnitClass = UnitClass
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local

local gump = _detalhes.gump --details local

Expand Down
2 changes: 1 addition & 1 deletion frames/window_breakdown/breakdown_spells_genericframes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local unpack = unpack
local GetTime = GetTime
local CreateFrame = CreateFrame
local GetSpellLink = GetSpellLink
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local
local GetSpellInfo = GetSpellInfo
local _GetSpellInfo = Details.GetSpellInfo
local GameTooltip = GameTooltip
Expand Down
2 changes: 1 addition & 1 deletion frames/window_breakdown/breakdown_spells_spellframes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local unpack = unpack
local GetTime = GetTime
local CreateFrame = CreateFrame
local GetSpellLink = GetSpellLink
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local
local GetSpellInfo = Details222.GetSpellInfo
local _GetSpellInfo = Details.GetSpellInfo
local GameTooltip = GameTooltip
Expand Down
2 changes: 1 addition & 1 deletion frames/window_breakdown/breakdown_spells_targetframes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local unpack = unpack
local GetTime = GetTime
local CreateFrame = CreateFrame
local GetSpellLink = GetSpellLink
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local
local GetSpellInfo = Details222.GetSpellInfo
local _GetSpellInfo = Details.GetSpellInfo
local GameTooltip = GameTooltip
Expand Down
2 changes: 1 addition & 1 deletion frames/window_breakdown/window_playerbreakdown_spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
local unpack = unpack
local GetTime = GetTime
local CreateFrame = CreateFrame
local GetSpellLink = GetSpellLink
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local
local GetSpellInfo = Details222.GetSpellInfo
local _GetSpellInfo = Details.GetSpellInfo
local GameTooltip = GameTooltip
Expand Down
1 change: 1 addition & 0 deletions functions/deathrecap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local textAlpha = 0.9
local AceLocale = LibStub("AceLocale-3.0")
local L = AceLocale:GetLocale ( "Details" )
local addonName, Details222 = ...
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local

local on_deathrecap_line_enter = function(self)
if (self.spellid) then
Expand Down
1 change: 1 addition & 0 deletions plugins/Details_EncounterDetails/frames_emote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ local detailsFramework = DetailsFramework
local CreateFrame = CreateFrame
local GameCooltip = GameCooltip
local _
local GetSpellLink = GetSpellLink or C_Spell.GetSpellLink --api local

local encounterDetails = _G.EncounterDetailsGlobal
local edFrame = encounterDetails.Frame
Expand Down

0 comments on commit 2ac06d0

Please sign in to comment.