• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

disable spell

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
is it possible to disable a spell when a certain spell is activated?

for example, Footman has defend and call to arms ability, if Defend is activated, call to arms would be disabled,

NOTE `what i meant my disable is not by triggering off call to arms ability (spell can be cast but nothing would happen) , it should work something like silence, the player cant cast call to arms.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Try this:

Unit is issued an order with no target
Order == defend
Add unit into a unit group

===============

Unit is issued an order with no target
Unit is in unit group and order == call to arms
Pause unit
Order unit to stop
Unpause unit

Remove the unit from the group when undefend is ordered.
 
Level 9
Joined
Apr 7, 2010
Messages
480
@Blazing Legion, because silence would cause all others abilities disabled

@Maker, +rep. i see your point, this is what im looking for. thanks :) anyways,(optional) if you have time could you post a leakless version of this in jass?

[EDIT] 'You must spread some Reputation around before giving it to Maker again.'
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
You could also use this to disable the spell:
  • Player - Disable Call to Arms for (Triggering player)
But this will disable the spell not only to the unit, but to the player (meaning it will affect other Footman-type units as well)
 
Status
Not open for further replies.
Top