WoW API: GetSummonFriendCooldown

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetSummonFriendCooldown to API GetSummonFriendCooldown without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetSummonFriendCooldown

Returns information about the cooldown time of the RaF Summon Friend ability.

start, duration = GetSummonFriendCooldown()

ReturnsEdit

start
Number - The value of GetTime() at the moment the cooldown began, 0 if the ability is ready
duration
Number - The length of the cooldown in seconds, 0 if the ability is ready

ExampleEdit

The snippet below prints the remaining time of the cooldown in seconds.

local start, duration = GetSummonFriendCooldown()
local timeleft = start + duration - GetTime()
print(timeleft)