I want to make a spell that increases my heroes move and attack speed , when there are enemy heroes in 2000 range of him. Here is what i came up with but it doesn't work, any ideas?

-
Hunters Instinct
-
Events
-
Time - Every 0.50 seconds of game time
-
-
Conditions
-
((Triggering unit) has buff Hunters Instinct1 ) Equal to True
-
-
Actions
-
Unit Group - Pick every unit in (Units within 2000.00 of (Position of (Triggering unit))) and do (Actions)
-
Loop - Actions
-
Wait until ((((Picked unit) is A Hero) Equal to True) and (((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)), checking every 0.10 seconds
-
Unit - Add Hunters Instinct AS1 to (Triggering unit)
-
Unit - Add Hunters Instinct MS1 to (Triggering unit)
-
Wait until ((((Picked unit) is A Hero) Equal to False) or (((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to False)), checking every 0.10 seconds
-
Unit - Remove Hunters Instinct AS1 from (Triggering unit)
-
Unit - Remove Hunters Instinct MS1 from (Triggering unit)
-
-
-
-