From a15e67083e0fd2b3531ddc5f639ce4b6b1d2087e Mon Sep 17 00:00:00 2001 From: d87 Date: Mon, 23 Sep 2024 16:32:42 +0700 Subject: [PATCH] GetSpellCooldown fix for 11.0.2 --- NugRunning.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/NugRunning.lua b/NugRunning.lua index 7bd7747..3a037a1 100644 --- a/NugRunning.lua +++ b/NugRunning.lua @@ -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