From 75a6a798ac075a5a16128b67d55948eaaa575430 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 16 Nov 2023 22:52:13 +0100 Subject: [PATCH 1/2] Update OpsZone.lua - Fix for new `getCategory` behaviour --- Moose Development/Moose/Ops/OpsZone.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/OpsZone.lua b/Moose Development/Moose/Ops/OpsZone.lua index 63287cbf2..01b7a3b19 100644 --- a/Moose Development/Moose/Ops/OpsZone.lua +++ b/Moose Development/Moose/Ops/OpsZone.lua @@ -1025,7 +1025,7 @@ function OPSZONE:Scan() if ZoneObject then -- Object category. - local ObjectCategory=ZoneObject:getCategory() + local ObjectCategory=Object.getCategory(ZoneObject) if ObjectCategory==Object.Category.UNIT and ZoneObject:isExist() and ZoneObject:isActive() then From 32ae4986ca24a70380537882ced69f25e0f25018 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Fri, 17 Nov 2023 06:28:33 +0100 Subject: [PATCH 2/2] Update PlayerTask.lua Weapon check for bomb runway task --- Moose Development/Moose/Ops/PlayerTask.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/PlayerTask.lua b/Moose Development/Moose/Ops/PlayerTask.lua index 0ad893b7e..c01f75299 100644 --- a/Moose Development/Moose/Ops/PlayerTask.lua +++ b/Moose Development/Moose/Ops/PlayerTask.lua @@ -2951,7 +2951,7 @@ function PLAYERTASKCONTROLLER:_AddTask(Target) task:HandleEvent(EVENTS.Shot) function task:OnEventShot(EventData) local data = EventData -- Core.Event#EVENTDATA EventData - local wcat = data.Weapon:getCategory() -- cat 2 or 3 + local wcat = Object.getCategory(data.Weapon) -- cat 2 or 3 local coord = data.IniUnit:GetCoordinate() or data.IniGroup:GetCoordinate() local vec2 = coord:GetVec2() or {x=0, y=0} local coal = data.IniCoalition