HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"Attack" is an Ability

10-01-2007, 05:08 AM#1
Zync
Ok, I'm having an undefinable problem. Here is the code:

Trigger:
Collapse Events
Unit - A unit Begins casting an ability
Conditions
Collapse Actions
Game - Force (Owner of (Casting unit)) to press Escape/Cancel

The point of this trigger is this; in this map, all of your abilities are done though a "spellbook" system. I wanted a way to exit the spellbook you're using upon casting an ability from it, yet, I didn't want the spellbook to share cooldown. Now this trigger accomplishes this. Nevertheless, this issue arises when the hero attacks. If you are in one of your spellbooks (just looking at your spells) when your unit auto attacks, then this trigger is set off, and kicks you out of your spellbook!
Now in GUI versions, I can't find a condition that makes sure the ability being cast is not Attack. That's fine, I can vJass, nevertheless, I do now know the id of Attack. Does anyone know?
10-01-2007, 05:56 AM#2
Pyrogasm
'Aatk', I believe.
10-01-2007, 07:32 AM#3
Zync
Quote:
Originally Posted by Pyrogasm
'Aatk', I believe.

No...tried that.
10-01-2007, 07:49 AM#4
Pyrogasm
I is "Aatk":
Quote:
Originally Posted by Rising_Dusk
call UnitRemoveAbility(YourUnit, 'Aatk') Will remove the attack ability.

The obvious conclusion here is that it's not firing because the unit is attacking. I tried making a trigger identical to yours and it did not display anything when a unit attacked or was ordered to attack.