This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Data/Missions.rte/Activities Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1303,7 +1303,7 @@ function DecisionDay:UpdateRegionCapturing()
1303
1303
local capturingTeam = bunkerRegionData .ownerTeam == self .aiTeam and self .humanTeam or self .aiTeam ;
1304
1304
local capturingTeamActorInArea = false ;
1305
1305
for movableObject in MovableMan :GetMOsInBox (captureBox , bunkerRegionData .ownerTeam , true ) do
1306
- if IsAHuman (movableObject ) or IsACrab (movableObject ) then
1306
+ if ( IsAHuman (movableObject ) or IsACrab (movableObject )) and ToActor ( movableObject ). Health > 0 then
1307
1307
capturingTeamActorInArea = true ;
1308
1308
break ;
1309
1309
end
@@ -1313,7 +1313,7 @@ function DecisionDay:UpdateRegionCapturing()
1313
1313
if capturingTeamActorInArea then
1314
1314
for captureBlockingBox in bunkerRegionData .totalArea .Boxes do
1315
1315
for movableObject in MovableMan :GetMOsInBox (captureBlockingBox , capturingTeam , true ) do
1316
- if IsAHuman (movableObject ) or IsACrab (movableObject ) then
1316
+ if ( IsAHuman (movableObject ) or IsACrab (movableObject )) and ToActor ( movableObject ). Health > 0 then
1317
1317
ownerTeamActorInTotalAreaBlockingCapture = true ;
1318
1318
break ;
1319
1319
end
You can’t perform that action at this time.
0 commit comments