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

[JASS] IssueImmediateOrder

Status
Not open for further replies.
Level 18
Joined
Jul 3, 2010
Messages
536
I've been trying to put together a spell that has a passive cooldown.

Preparation [PASSIVE]
If Hero does not attack for 10 / 9 / 8 / 7 / 6 / 5 / 4 seconds, it gains 400% attack speed for 5 attacks.

Basically, every time the unit attacks, the cooldown of this skill has to start. For this I gave it an Evasion and when I want the cooldown to start, I replace it with a Berserk spell that I order the unit to immediately use.

However, this Berserk spell disrupts the unit's current orders, cancelling its attack. Is there a way to make a unit use Berserk without it stopping? I used Berserk in the first place because I know it doesn't cancel the unit's orders when the player uses it. So what's the difference and is there a way to work around this?

EDIT: For clarity, the Evasion and Berserk spells are dummy spells, they don't give a chance to evade or attack or movement speed and Berserk's buff is immediately removed.
 
Status
Not open for further replies.
Top