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

Commit 844c114

Browse files
committed
Fixed dead actors being able to capture in dday if they're not settled
1 parent 9ce9afc commit 844c114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/Missions.rte/Activities/DecisionDay.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ function DecisionDay:UpdateRegionCapturing()
13031303
local capturingTeam = bunkerRegionData.ownerTeam == self.aiTeam and self.humanTeam or self.aiTeam;
13041304
local capturingTeamActorInArea = false;
13051305
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
13071307
capturingTeamActorInArea = true;
13081308
break;
13091309
end
@@ -1313,7 +1313,7 @@ function DecisionDay:UpdateRegionCapturing()
13131313
if capturingTeamActorInArea then
13141314
for captureBlockingBox in bunkerRegionData.totalArea.Boxes do
13151315
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
13171317
ownerTeamActorInTotalAreaBlockingCapture = true;
13181318
break;
13191319
end

0 commit comments

Comments
 (0)