From 5f8d1cf5b0c45fb3a8bdad0364afe84212b1300d Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 1 Oct 2024 09:07:51 +0200 Subject: [PATCH] Update Warehouse.lua - Added check for incorrect plane attribute --- Moose Development/Moose/Functional/Warehouse.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/Warehouse.lua b/Moose Development/Moose/Functional/Warehouse.lua index b7a69a44e..e5fc12157 100644 --- a/Moose Development/Moose/Functional/Warehouse.lua +++ b/Moose Development/Moose/Functional/Warehouse.lua @@ -8433,12 +8433,14 @@ function WAREHOUSE:_GetAttribute(group) local attribute=WAREHOUSE.Attribute.OTHER_UNKNOWN --#WAREHOUSE.Attribute if group then + + local groupCat=group:GetCategory() ----------- --- Air --- ----------- -- Planes - local transportplane=group:HasAttribute("Transports") and group:HasAttribute("Planes") + local transportplane=group:HasAttribute("Transports") and group:HasAttribute("Planes") and groupCat==Group.Category.AIRPLANE local awacs=group:HasAttribute("AWACS") local fighter=group:HasAttribute("Fighters") or group:HasAttribute("Interceptors") or group:HasAttribute("Multirole fighters") or (group:HasAttribute("Bombers") and not group:HasAttribute("Strategic bombers")) local bomber=group:HasAttribute("Strategic bombers")