Merge pull request #2205 from shaji-Dev/Heartbreaker

[FIXED] OpsZone never goes to `Attacked` state if `threatlevelCapture` is higher than 0.
This commit is contained in:
Thomas
2025-01-02 07:31:11 +01:00
committed by GitHub

View File

@@ -1314,7 +1314,7 @@ function OPSZONE:EvaluateZone()
if Nblu>0 then
if not self:IsAttacked() and self.Tnut>=self.threatlevelCapture then
if not self:IsAttacked() and self.Tblu>=self.threatlevelCapture then
self:Attacked(coalition.side.BLUE)
end
@@ -1366,7 +1366,7 @@ function OPSZONE:EvaluateZone()
if Nred>0 then
if not self:IsAttacked() and self.Tnut>=self.threatlevelCapture then
if not self:IsAttacked() and self.Tred>=self.threatlevelCapture then
-- Red is attacking blue zone.
self:Attacked(coalition.side.RED)
end