• 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.

Whats a round about way to detect cooldowns?

Status
Not open for further replies.
You can basicly use abuse the IssueOrder jass natives to check if an ability is on cooldown. They will return false if the ability can not be cast (but that could also be because of mana cost or an invalid target, so you need to catch those cases aswell).

You can instantly order the unit to stop after that to prevent the unit from actually casting that ability (and triggering the cooldown/manacost).


However, keeping track of the cooldowns via timers is probably the better, less bug-prone solution.
 
Status
Not open for further replies.
Top