WoW:API GetSpellCooldown: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 21: Line 21:
;''Returns''
;''Returns''


:(Number startTime, Number duration)
:(Number startTime, Number duration, Number enable)


:;startTime : The time when the cooldown started (as returned by [[API GetTime|GetTime()]]) or zero if no cooldown
:;startTime : The time when the cooldown started (as returned by [[API GetTime|GetTime()]]) or zero if no cooldown
:;duration : The number of seconds the cooldown will last, or zero if no cooldown
:;duration : The number of seconds the cooldown will last, or zero if no cooldown


Note: The current wiki page for GetActionSlotCooldown() page gives a third return variable, but this function appears to either only return two variables or always give "1" (perhaps it's if the function successly completed or not?).
:;enable : Appears to be set to 1 if this spell is in cooldown, and 0 otherwise.


----
----
Anonymous user