API GetSpellBaseCooldown

From Wowpedia
Jump to: navigation, search

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 history

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

See also