mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-17 12:50:22 +00:00
Update Auftrag.lua
line 6613 - Fix for HasSEAD should it find statics unexpectedly
This commit is contained in:
@@ -6610,7 +6610,7 @@ function AUFTRAG:GetDCSMissionTask(MissionGroup)
|
|||||||
local SeadUnitSet = SET_UNIT:New()
|
local SeadUnitSet = SET_UNIT:New()
|
||||||
for _,_unit in pairs (ScanUnitSet.Set) do
|
for _,_unit in pairs (ScanUnitSet.Set) do
|
||||||
local unit = _unit -- Wrapper.Unit#UNTI
|
local unit = _unit -- Wrapper.Unit#UNTI
|
||||||
if unit and unit:IsAlive() and unit:HasSEAD() then
|
if unit and unit:IsAlive() and unit.HasSEAD and unit:HasSEAD() then
|
||||||
self:T("Adding UNIT for SEAD: "..unit:GetName())
|
self:T("Adding UNIT for SEAD: "..unit:GetName())
|
||||||
local task = CONTROLLABLE.TaskAttackUnit(nil,unit,GroupAttack,AI.Task.WeaponExpend.ALL,1,Direction,self.engageAltitude,2956984318)
|
local task = CONTROLLABLE.TaskAttackUnit(nil,unit,GroupAttack,AI.Task.WeaponExpend.ALL,1,Direction,self.engageAltitude,2956984318)
|
||||||
table.insert(DCStasks, task)
|
table.insert(DCStasks, task)
|
||||||
|
|||||||
Reference in New Issue
Block a user