WoW:API GetActionCooldown: Difference between revisions

no edit summary
No edit summary
 
No edit summary
Line 27: Line 27:
  local start, duration, enable = GetActionCooldown(v.id);
  local start, duration, enable = GetActionCooldown(v.id);
  if ( start > 0 and duration > 0 and enable > 0) then
  if ( start > 0 and duration > 0 and enable > 0) then
-- do stuff when cooldown is under effect
-- do stuff when cooldown is under effect
  else
  else
-- do stuff when cooldown is not active
-- do stuff when cooldown is not active
  end
  end


Anonymous user