C_Spell.GetSpellCooldown

From Warcraft Wiki
Jump to navigation Jump to search

Returns the cooldown info of a spell.

spellCooldownInfo = C_Spell.GetSpellCooldown(spellIdentifier)

Arguments

spellIdentifier
number|string : SpellIdentifier - Spell ID, name, name(subtext), or link

Returns

spellCooldownInfo
SpellCooldownInfo? - Returns nil if spell is not found
Field Type Description
startTime number If cooldown is active, time started; 0 if no cooldown; Current time if isEnabled is false
duration number Cooldown duration in seconds if active; 0 if cooldown is inactive
isEnabled boolean False if cooldown is on hold (ex: some cooldowns only start after an active spell is cancelled); True otherwise
modRate number Rate at which cooldown UI should update

Details

Related Events SPELL_UPDATE_COOLDOWN

Patch changes