GetSpellBaseCooldown

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 4.3.0

Gives the (unmodified) cooldown and global cooldown of an ability in milliseconds.

cooldownMS, gcdMS = GetSpellBaseCooldown(spellid)

Arguments

spellid
number - The spellid of your ability.

Returns

cooldownMS
number - Millisecond duration of the spell's cooldown (if any other than the global cooldown)
gcdMS
number - Millisecond duration of the spell's global cooldown (if any)

Note

Polling the second return value will discover if a particular spell is subject to GCD.

Patch changes

Cataclysm Patch 4.3.0 (2011-11-29): Added.

See also