Skip to content

Commit

Permalink
GetSpellCooldown fix for 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Sep 23, 2024
1 parent 3038403 commit a15e670
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NugRunning.lua
Original file line number Diff line number Diff line change
@@ -125,7 +125,13 @@ local IsPlayerSpell = IsPlayerSpell
local GetSpellInfo = helpers.GetSpellInfo
local GetSpellTexture = helpers.GetSpellTexture
local string_sub = string.sub
local GetSpellCooldown = GetSpellCooldown or C_Spell.GetSpellCooldown
local RetailGetSpellCooldown = function(...)
local C_Spell_GetSpellCooldown = C_Spell.GetSpellCooldown
local info = C_Spell_GetSpellCooldown(...)
return info.startTime, info.duration, info.enabled, info.modRate
end
local GetSpellCooldown = GetSpellCooldown or RetailGetSpellCooldown

local GetSpellCharges = GetSpellCharges or C_Spell.GetSpellCharges
local CombatLogGetCurrentEventInfo = CombatLogGetCurrentEventInfo
local bit_band = bit.band

0 comments on commit a15e670

Please sign in to comment.