C_Spell .GetSpellCooldown
Jump to navigation
Jump to search
![]() ![]() ![]() ![]() |
C_Spell.GetSpellCooldown |
![]() |
+ 11.0.0 |
![]() ![]() ![]() ![]() |
C_SpellBook.GetSpellBookItemCooldown |
![]() |
+ 11.0.0 |
![]() ![]() |
GetSpellCooldown |
![]() ![]() ![]() |
+ 1.0.0, - 11.0.0 |
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
Patch 11.0.0 (2024-07-23): Added, replacement for GetSpellCooldown.