• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to detect an ability is cooldown

Status
Not open for further replies.
Level 21
Joined
Aug 21, 2005
Messages
3,699
In jass the returnvalue of IssueImmediateOrder (and other orders) return a boolean. I haven't tested it yet, but I guess it returns false if the unit doesn't have the ability or the ability is on cooldown?

A downside would be that if it's not on cooldown, the ability is then cast :p
 
Status
Not open for further replies.
Top