Check team members' health in Team.Do function
This commit is contained in:
@@ -57,7 +57,11 @@ Team.Contains = function(team, actor)
|
|||||||
end
|
end
|
||||||
|
|
||||||
Team.Do = function(team, func)
|
Team.Do = function(team, func)
|
||||||
Utils.Do(team.Actors, func)
|
Utils.Do(team.Actors, function(actor)
|
||||||
|
if not Actor.IsDead(actor) then
|
||||||
|
func(actor)
|
||||||
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
Team.Patrol = function(team, waypoints, wait, loop)
|
Team.Patrol = function(team, waypoints, wait, loop)
|
||||||
|
|||||||
Reference in New Issue
Block a user