How may I disable (or alter) the execution of a standard spell like web, when "auto-cast" is enabled?
I want to rewrite the way of execution via JASS, but as the unit casts it' spell automatically, pointing out a target by itself, my code is beíng overridden.
if you want to DISABLE them, then use a spell like ensnare that DOES NOT have auto-cast =)
even better, use a spell like "channel" that doesnt do anything, so the AI refuses to use it, then use triggers to make the proper spell to be cast by a dummy
Make some nothing-doing autocast spell. Then make trigger triggered by ability being cast and then use a dummy and cast that spell you want on target of ability being cast
NOTE: that nothing-doing ability shall have duration 0.01
So far... But how may I realize, that the player can still left-click on the button and select a target manually?
I can catch the issued order with ease, but how to use the pure "click-on-button" event? As "heal" cannot be cast on healthy units and "inner fire" whould be auto-casted in fights as well as "bloodlust"...
... May it work to use an "arrow" ability like "incinerate arrow" or "cold arrow"? I could make it be castable only on friendly units but the unit whould not really attack it's allies, whould it?