HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stoping cast of ability

01-08-2006, 11:10 AM#1
Belphegor666
Can you through triggers or JASS stop the casting of certain abilities like when a targeting unit that is not an illusion?!
01-08-2006, 11:18 AM#2
Jacek
well if you can detect illusion:

event
a unit begins casting of ability
condition
ability being cast = blablabla
action
unit - order casting unit to stop
01-08-2006, 01:14 PM#3
SmileyJeff
Trigger:
Illusion
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to ur_ability
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Target unit of ability being cast) is an illusion) Equal to False
Collapse Then - Actions
Unit - Order (Casting unit) to Stop
Collapse Else - Actions
---- Your actions for illusions ---

Maybe this helps :)

edited by Vexorian: use [trigger] tags next time.
01-08-2006, 01:52 PM#4
Belphegor666
Tnx but I've thought a way so I don't need it... Tnx anway
01-08-2006, 01:59 PM#5
Jacek
Wrong Smiley! Here you must use begins casting of ability.