Returns cooldown information about a spell in the spellbook
See also Spell functions.
Signature:
start,
duration,
enable
=
GetSpellCooldown(index,
"bookType")
or
GetSpellCooldown("name")
or
GetSpellCooldown(id)
Arguments:
index
- Index of a spell in the spellbook (number
, spellbookID)bookType
- Type of spellbook (string
)pet
- The pet's spellbookspell
- The player's spellbook
name
- Name of a spell (string
)id
- Numeric ID of a spell (number
, spellID)
Returns:
start
- The value ofGetTime()
at the moment the cooldown began, or 0 if the spell is ready (number
)duration
- The length of the cooldown, or 0 if the spell is ready (number
)enable
- 1 if a Cooldown UI element should be used to display the cooldown, otherwise 0. (Does not always correlate with whether the spell is ready.) (number
)