Remove now redundant Actor.IsDead checks from mission scripts

This commit is contained in:
Oliver Brakmann
2014-06-03 20:04:02 +02:00
parent 3a2bb75e01
commit 89b25c10d6
3 changed files with 11 additions and 23 deletions

View File

@@ -38,11 +38,7 @@ end
Build = function(template, repeats, func)
Production.BuildTeamFromTemplate(nod, template, function(team)
Team.Do(team, function(actor)
if not Actor.IsDead(actor) then
func(actor)
end
end)
Team.Do(team, func)
if repeats then
Team.AddEventHandler(team.OnAllKilled, function()
Build(template, repeats, func)