I based by spell on blink, because it's the only spell with minimum range. But how do i stop the caster from teleporting...?![]()
I tested it and it works perfectly (Mana cost and everything).
No Blink Blink
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Blink
Actions
Unit - Remove Blink from (Triggering unit)
Unit - Add Blink to (Triggering unit)
could evan use
then you could use a different spell
Melee Initialization
Events
Conditions
Actions
Set caster_pos = (Position of (Triggering unit))
Set target_pos = (Target point of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between caster_pos and target_pos) Greater than or equal to 10.00
Then - Actions
-------- spell triggers --------
Else - Actions
but i dont think there is a way getting around losing mana and the cool down going off
No Blink Blink
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Blink
Actions
Unit - Remove Blink from (Triggering unit)
Unit - Add Blink to (Triggering unit)