Unit - A unit Starts the effect of an ability
(Ability being cast) Equal to Cluster Rockets
Unit Group - Pick every unit in (Units within 80.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) is A Hero) Equal to False
((Picked unit) is alive) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
Unit - Change color of (Picked unit) to Green
Wait 10.00 seconds - PROBLEM. DOESNT CHANGE BACK
Unit - Change ownership of (Picked unit) to (Previous owner) and Change color
Else - Actions
Do nothing
It changes the units in the area to owner of casting unit, then it doesnt change them back to previous owner.
Any ideas what changes to these triggers should i make so as to make the changing of onwer back to previous onwer work ? Pls find it out for me and it is done.
(Ability being cast) Equal to Cluster Rockets
Unit Group - Pick every unit in (Units within 80.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) is A Hero) Equal to False
((Picked unit) is alive) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to (Owner of (Casting unit)) and Change color
Unit - Change color of (Picked unit) to Green
Wait 10.00 seconds - PROBLEM. DOESNT CHANGE BACK
Unit - Change ownership of (Picked unit) to (Previous owner) and Change color
Else - Actions
Do nothing
It changes the units in the area to owner of casting unit, then it doesnt change them back to previous owner.
Any ideas what changes to these triggers should i make so as to make the changing of onwer back to previous onwer work ? Pls find it out for me and it is done.