v0.13.8

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)

signaturewowlua
function C_SpellBook.GetSpellBookItemLossOfControlCooldownInfo(    spellBookItemSlotIndex: number,    spellBookItemSpellBank: SpellBookSpellBank): SpellLossOfControlInfo?

Parameters

nametype
spellBookItemSlotIndexnumber
spellBookItemSpellBankSpellBookSpellBank

Returns

lossOfControlInfo · SpellLossOfControlInfo?

SpellLossOfControlInfo
fieldtypedescription
startTimenumberIf cooldown is active, time started; 0 if no cooldown
durationnumberCooldown duration in seconds if active; 0 if cooldown is inactive
modRatenumberRate at which cooldown UI should update
isActivebooleanFalse if cooldown is not active (startTime or duration are 0); True otherwise
shouldReplaceNormalCooldownbooleanTrue 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 ↗.