[FIXED] OpsZone never goes to Attacked state if threatlevelCapture is higher than 0.

This commit is contained in:
Shafik 2025-01-01 23:08:30 +02:00
parent 42e6b57296
commit 68165cee75

View File

@ -1314,7 +1314,7 @@ function OPSZONE:EvaluateZone()
if Nblu>0 then 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) self:Attacked(coalition.side.BLUE)
end end
@ -1366,7 +1366,7 @@ function OPSZONE:EvaluateZone()
if Nred>0 then 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. -- Red is attacking blue zone.
self:Attacked(coalition.side.RED) self:Attacked(coalition.side.RED)
end end