We have begun migration of most wikis to our new host, Amazon Web Services. All but the top 100 wikis are in read-only mode until the migration is complete. Estimated completion: TBD -- Update: Fri 10/20 11pm UTC - We have encountered some unexpected issues. Our staff is working around the clock to complete this process as quickly as possible. Thank you for your patience.

API Cooldown SetLossOfControlCooldown

From Wowpedia
Jump to: navigation, search

Shows a loss-of-control cooldown animation.

Cooldown:SetLossOfControlCooldown(startTime, duration)


Number - the time when the cooldown started (as returned by GetTime).
Number - duration of the cooldown effect in seconds.


Cooldown animation

Create Frame and Cooldown (See Cooldown:SetCooldown for details)

local f = CreateFrame("Frame")
f:SetSize(64, 64)
f:SetBackdrop({bgFile = "Interface\\Icons\\Trade_Engineering"})

local cd = CreateFrame("Cooldown")

Display a 2-second cooldown animation

cd:SetLossOfControlCooldown(GetTime(), 2)

See also

Patch history

MoP Patch 5.1.0 (2012-11-27): Added.