Thanks a ton, Enin +rep! Just a minor fix now: can anything be done to the Else - Actions to make it like a normal ability when you target the wrong unit, it doesn't actually cast the ability and waste the mana? Because right now it just casts the dummy Banish ability i have. Any thoughts there? Thanks again!
firstly you should replace banish ability with chain lightning (targets 1)
>unit is ordered targeting a object
E-unit is ordered targeting an object
C-issued order equal to "chainlightning"
C-unit of type (ordered unit equal to (Your Unit)
-your unit that cast your custom ability
C-target uni of issued order not equal to (Your Unit)
-your unit that must be targeted
set YourVariableTypeUNIT = (ordered unit)
start YourVariableTypeTIMER that will expire in 0.00 seconds
(expiring timer is needed so your WarCraft cant crash...just do what i say xD)
>stop unit when timer expires
E-YourVariableTypeTIMER expires
order YourVariableTypeUNIT to "stop"
-there you stop the ordered unit to cast your ability
on this way it will not happen when you start to cast ability,it will stop him immediately like the unit has magic immunity,on this way you can also stop units to PICK UP items,not drop them whey they pick it up