GetSpellLossOfControlCooldown

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 5.2.0 / 1.13.2

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 changes

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

See also