From e16e2851c1dc0f6373cfdabf5f42993594bf34e4 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 25 Nov 2019 11:58:29 +0100 Subject: [PATCH] ARTY v1.1.6 - Check that arty unit is not dead when addressed via marker --- Moose Development/Moose/Functional/Artillery.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/Artillery.lua b/Moose Development/Moose/Functional/Artillery.lua index 87d4d0a69..d1742c271 100644 --- a/Moose Development/Moose/Functional/Artillery.lua +++ b/Moose Development/Moose/Functional/Artillery.lua @@ -693,7 +693,7 @@ ARTY.db={ --- Arty script version. -- @field #string version -ARTY.version="1.1.5" +ARTY.version="1.1.6" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -2555,6 +2555,13 @@ function ARTY:_OnEventMarkChange(Event) if not _assigned then self:T3(self.lid..string.format("INFO: ARTY group %s was not addressed! Mark text:\n%s", self.groupname, Event.text)) return + else + if self.Controllable and self.Controllable:IsAlive() then + + else + self:T3(self.lid..string.format("INFO: ARTY group %s was addressed but is NOT alive! Mark text:\n%s", self.groupname, Event.text)) + return + end end -- Coordinate was given in text, e.g. as lat, long.