C_SpellBook. GetSpellBookItemLossOfControlCooldownInfo
functionguessedavailable in: camelot
Returns nil if item doesn't exist or if this kind of item doesn't display cooldowns (ex: future or offspec spells)
function C_SpellBook.GetSpellBookItemLossOfControlCooldownInfo( spellBookItemSlotIndex: number, spellBookItemSpellBank: SpellBookSpellBank): SpellLossOfControlInfo?Parameters
| name | type |
|---|---|
spellBookItemSlotIndex | number |
spellBookItemSpellBank | SpellBookSpellBank |
Returns
lossOfControlInfo · SpellLossOfControlInfo?
| field | type | description |
|---|---|---|
startTime | number | If cooldown is active, time started; 0 if no cooldown |
duration | number | Cooldown duration in seconds if active; 0 if cooldown is inactive |
modRate | number | Rate at which cooldown UI should update |
isActive | boolean | False if cooldown is not active (startTime or duration are 0); True otherwise |
shouldReplaceNormalCooldown | boolean | True if this cooldown should be displayed in-place of the normal action cooldown (ex: the LoC cooldown expires later than the normal cooldown); False otherwise |
Blizzard's documentation says it may return nothing.
In wowlua's emulated client
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpellBook system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.