mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
parent
565a5294e2
commit
b63be6dd28
@ -21,7 +21,7 @@
|
|||||||
-- ===
|
-- ===
|
||||||
-- @module Ops.PlayerTask
|
-- @module Ops.PlayerTask
|
||||||
-- @image OPS_PlayerTask.jpg
|
-- @image OPS_PlayerTask.jpg
|
||||||
-- @date Last Update October 2022
|
-- @date Last Update November 2022
|
||||||
|
|
||||||
|
|
||||||
do
|
do
|
||||||
@ -95,7 +95,7 @@ PLAYERTASK = {
|
|||||||
|
|
||||||
--- PLAYERTASK class version.
|
--- PLAYERTASK class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
PLAYERTASK.version="0.1.9"
|
PLAYERTASK.version="0.1.10"
|
||||||
|
|
||||||
--- Generic task condition.
|
--- Generic task condition.
|
||||||
-- @type PLAYERTASK.Condition
|
-- @type PLAYERTASK.Condition
|
||||||
@ -654,12 +654,15 @@ function PLAYERTASK:onafterStatus(From, Event, To)
|
|||||||
|
|
||||||
-- Check Target status
|
-- Check Target status
|
||||||
local targetdead = false
|
local targetdead = false
|
||||||
|
|
||||||
|
if self.Type ~= AUFTRAG.Type.CTLD and self.Type ~= AUFTRAG.Type.CSAR then
|
||||||
if self.Target:IsDead() or self.Target:IsDestroyed() or self.Target:CountTargets() == 0 then
|
if self.Target:IsDead() or self.Target:IsDestroyed() or self.Target:CountTargets() == 0 then
|
||||||
targetdead = true
|
targetdead = true
|
||||||
self:__Success(-2)
|
self:__Success(-2)
|
||||||
status = "Success"
|
status = "Success"
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if status == "Executing" then
|
if status == "Executing" then
|
||||||
-- Check Clients alive
|
-- Check Clients alive
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user