Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit c9e7867

Browse files
committed
Skirmish defense tweak to help with deployments
1 parent e118a36 commit c9e7867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/Base.rte/Activities/SkirmishDefense.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ function SkirmishDefense:StartNewGame(aiTeams)
110110
soleHumanTeam = soleHumanTeam == -1 and team or false;
111111
end
112112
end
113-
-- If there's only one Human team, set all existing doors to that team
113+
-- If there's only one Human team, set all existing doors and actors to that team
114114
if soleHumanTeam ~= false and soleHumanTeam >= 0 then
115115
for actor in MovableMan.AddedActors do
116-
if actor.Team ~= soleHumanTeam and actor.ClassName == "ADoor" then
116+
if actor.Team ~= soleHumanTeam then
117117
MovableMan:ChangeActorTeam(actor, soleHumanTeam);
118118
end
119119
end

0 commit comments

Comments
 (0)