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] 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