WoW API: GetSummonFriendCooldown
Jump to navigation Jump to search
→ WoW API
Returns information about the cooldown time of the RaF Summon Friend ability.
start, duration = GetSummonFriendCooldown()
- Number - The value of GetTime() at the moment the cooldown began, 0 if the ability is ready
- Number - The length of the cooldown in seconds, 0 if the ability is ready
The snippet below prints the remaining time of the cooldown in seconds.
local start, duration = GetSummonFriendCooldown() local timeleft = start + duration - GetTime() print(timeleft)