This isn't giving the units back, why is this?
Code:
Tidal Control
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Tidal Control
Actions
Set Targetedpoint = (Target point of ability being cast)
Unit Group - Pick every unit in (Units within 800.00 of Targetedpoint matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is A structure) Equal to False)))) and do (Actions)
Loop - Actions
Set Unit = (Picked unit)
Set PLAYER = (Owner of Unit)
Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
Wait 1.00 seconds
Unit - Change ownership of Unit to PLAYER and Change color