C_SpellBook .GetSpellBookItemCooldown
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 11.0.0 |
![]() |
This API only exists on the 11.0.0 Public Test Realm |
Returns the cooldown info of a spell.
spellCooldownInfo = C_SpellBook.GetSpellBookItemCooldown(index, spellBank)
Arguments
- index
- number - Spellbook slot index, ranging from 1 through the total number of spells across all tabs and pages
- spellBank
- enum - Enum.SpellBookSpellBank.Player or Enum.SpellBookSpellBank.Pet
Returns
- spellCooldownInfo
- SpellCooldownInfo
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 (Beta): Added, replacement for GetSpellCooldown.