:;slot : Integer - The [[ActionSlot|action slot]] to retrieve data from.
:;slot : Integer - The [[ActionSlot|action slot]] to retrieve data from.
−
''Returns''
−
:;start : Number: The time at which the current cooldown period began (relative to the result of [[API GetTime|GetTime]]), or 0 if the cooldown is not active or not applicable.
+
<big>'''Returns'''</big>
−
:;duration : Number: The duration of the current cooldown period in seconds, or 0 if the cooldown is not active or not applicable.
+
−
:;enable : Number: Indicate if cooldown is enabled, is greater than 0 if a cooldown is active, and 0 if a cooldown cannot be active. This lets you know when a shapeshifting form has ended and the actual countdown has started.
+
:start, duration, enable
+
+
:;start : Number - The time at which the current cooldown period began (relative to the result of [[API GetTime|GetTime]]), or 0 if the cooldown is not active or not applicable.
+
:;duration : Number - The duration of the current cooldown period in seconds, or 0 if the cooldown is not active or not applicable.
+
:;enable : Number - Indicate if cooldown is enabled, is greater than 0 if a cooldown is active, and 0 if a cooldown cannot be active. This lets you know when a shapeshifting form has ended and the actual countdown has started.
Number - The time at which the current cooldown period began (relative to the result of GetTime), or 0 if the cooldown is not active or not applicable.
duration
Number - The duration of the current cooldown period in seconds, or 0 if the cooldown is not active or not applicable.
enable
Number - Indicate if cooldown is enabled, is greater than 0 if a cooldown is active, and 0 if a cooldown cannot be active. This lets you know when a shapeshifting form has ended and the actual countdown has started.
local start, duration, enable = GetActionCooldown(slot);
if ( start == 0 ) then
-- do stuff when cooldown is not active
else
-- do stuff when cooldown is under effect
end