[gui]
Leash effect
Events
Time - Every 0.20 seconds of game time
Conditions
Actions
Set Leash_Caster_Group = (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to (==) Leash ward))
Unit Group - Pick every unit in Leash_Caster_Group and do (Actions)
Loop - Actions
Set Leash_Point[(Number of units in Leash_Caster_Group)] = (Position of (Picked unit))
Set Leash_Group = (Units in (Playable map area) matching (((Matching unit) has buff Leash aura ) Equal to (==) True))
Unit Group - Pick every unit in Leash_Group and do (Actions)
Loop - Actions
Set Leash_Unit = (Picked unit)
Set Leash_Target_Point = (Position of (Picked unit))
Set Leash_Offset_Point = (Leash_Target_Point offset by 30.00 towards (Angle from Leash_Target_Point to Leash_Point[(Integer A)]) degrees)
Do Multiple ActionsFor each (Integer A) from 1 to (Number of units in Leash_Caster_Group), do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between Leash_Target_Point and Leash_Point[(Integer A)]) Less than or equal to (<=) 300.00
Then - Actions
Custom script: call SetUnitX(udg_Leash_Unit, GetLocationX(udg_Leash_Offset_Point))
Custom script: call SetUnitY(udg_Leash_Unit, GetLocationY(udg_Leash_Offset_Point))
Else - Actions
Do Multiple ActionsFor each (Integer A) from 1 to (Number of units in Leash_Caster_Group), do (Actions)
Loop - Actions
Custom script: call RemoveLocation(udg_Leash_Point[bj_forLoopAIndex])
Custom script: call RemoveLocation(udg_Leash_Target_Point)
Custom script: call RemoveLocation(udg_Leash_Offset_Point)
Trigger - Turn on Leash stop
Trigger - Turn on Leash end
[/gui]
Porque este deto solo funciona con una unidad a la vez a pesar de que se supone que debiese funcionar con 2?
Porque este deto a veces mueve a la unidad objetivo lejos del caster en lugar de hacia el caster?

Haz click a una de las imagenes y entra a un trip