@@ -142,16 +142,16 @@ function BunkerBreach:SetupDefenderActors()
142142 local crabToHumanSpawnRatio = self :GetCrabToHumanSpawnRatio (techID );
143143
144144 local loadoutNames = {" Light" , " Heavy" , " Sniper" , " Engineer" , " Mecha" , " Turret" };
145-
145+
146146 local hasSpawnAreas = false ;
147147 for _ , loadoutName in pairs (loadoutNames ) do
148148 if SceneMan .Scene :HasArea (loadoutName .. " Defenders" ) then
149149 hasSpawnAreas = true ;
150150 end
151151 end
152-
152+
153153 for actor in MovableMan .AddedActors do
154- if not actor :IsInGroup (" Brains" ) and not actor :IsInGroup (" Bunker Systems" ) then
154+ if not actor :IsInGroup (" Brains" ) and not actor :IsInGroup (" Bunker Systems" ) and not IsADoor ( actor ) then
155155 if hasSpawnAreas then
156156 actor .ToDelete = true ;
157157 elseif actor .Team ~= self .defenderTeam then
@@ -162,7 +162,7 @@ function BunkerBreach:SetupDefenderActors()
162162 actor .Team = self .defenderTeam ;
163163 end
164164 end
165-
165+
166166 if hasSpawnAreas then
167167 for _ , loadoutName in pairs ({" Light" , " Heavy" , " Sniper" , " Engineer" , " Mecha" , " Turret" }) do
168168 if SceneMan .Scene :HasArea (loadoutName .. " Defenders" ) then
@@ -261,7 +261,7 @@ function BunkerBreach:StartActivity(isNewGame)
261261 FrameMan :ClearScreenText (self :ScreenOfPlayer (player ));
262262 end
263263 end
264-
264+
265265 MusicMan :PlayDynamicSong (" Generic Battle Music" );
266266
267267 if isNewGame then
@@ -675,7 +675,7 @@ function BunkerBreach:CreateInternalReinforcements(loadout, numberOfReinforcemen
675675 numberOfInternalReinforcementsToCreateAtPosition = 3 ;
676676 end
677677 end
678-
678+
679679 for i = 1 , numberOfInternalReinforcementsToCreateAtPosition do
680680 local internalReinforcement ;
681681 if loadout then
0 commit comments