• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 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.'
 
Status
Not open for further replies.
Top