GetSpellLossOfControlCooldown

From Wowpedia
Jump to: navigation, search

Returns information about a loss-of-control cooldown affecting a spell.

start, duration = GetSpellLossOfControlCooldown(spellSlot[, "bookType"] or "spellName" or spellID)

Arguments

spellSlot 
Number - spell book slot index, ascending from 1.
bookType 
String - spell book type token, e.g. "spell" from player's spell book.

or

spellName 
String - name of a spell in the player's spell book.

or

spellID 
Number - spell ID of a spell accessible to the player.

Returns

start 
Number - time at which the loss-of-control cooldown began, per GetTime.
duration 
Number - duration of the loss-of-control cooldown in seconds; 0 if the spell is not currently affected by a loss-of-control cooldown.

Details

  • If the spell is not affected by a loss-of-control cooldown, this function returns 0, 0

Patch history

Mists of Pandaria Patch 5.2.0 (2013-03-05): Added.


See also