- Joined
- Nov 15, 2010
- Messages
- 16
Hi
How can prevent an archmage teleporting into a certain areas of the map if a teleport target is selected via the minimap?
I just want the teleport ability stopped as soon as archmage starts casting it if the target unit of teleport is in the specific map area.
This works perfectly fine when I target the unit in that region via the game screen as normal, by actually targeting a unit. Teleport stops, wasting cooldown, and archmage is not teleported.
This is exactly what I want.
However when I target that unit via the minimap, archmage teleports to that unit just fine, unhindered.
How can I prevent archmage to teleport to that unit if the unit is targeted via the minimap?
How can prevent an archmage teleporting into a certain areas of the map if a teleport target is selected via the minimap?
I just want the teleport ability stopped as soon as archmage starts casting it if the target unit of teleport is in the specific map area.
This works perfectly fine when I target the unit in that region via the game screen as normal, by actually targeting a unit. Teleport stops, wasting cooldown, and archmage is not teleported.
This is exactly what I want.
However when I target that unit via the minimap, archmage teleports to that unit just fine, unhindered.
How can I prevent archmage to teleport to that unit if the unit is targeted via the minimap?
-
PreventTeleport
-
Events
- Unit - Archmage 1122 <gen> Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Mass Teleport
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (PreventTeleportHere <gen> contains (Target unit of ability being cast)) Equal to True
-
Then - Actions
- Unit - Order (Casting unit) to Stop
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Last edited: