Skip to content

Get Spell Cooldown

Game Version Wrapper

Returns spell cooldown data from either legacy GetSpellCooldown or C_Spell.GetSpellCooldown.

NamespaceEModuleCoreLifecyclewrapper
E:GetSpellCooldown(spellID)

Returns spell cooldown data from either legacy GetSpellCooldown or C_Spell.GetSpellCooldown.

spellID: Numeric spell id.

startTime, duration, isEnabled, modRate when cooldown data is available.

local start, duration = E:GetSpellCooldown(120)

Pairs with E:GetSpellInfo and E:GetSpellCharges for cross-client spell integrations.

Source: ElvUI/Game/Shared/General/API.lua:513