From 0a874a28eff0c3191a7426c50d56c4529d91187c Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 19 Jun 2021 01:54:49 +0200 Subject: [PATCH] Fix group name for EWRs. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1246 --- game/theater/theatergroundobject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/theater/theatergroundobject.py b/game/theater/theatergroundobject.py index e4ff3bca..df637cbc 100644 --- a/game/theater/theatergroundobject.py +++ b/game/theater/theatergroundobject.py @@ -597,7 +597,8 @@ class EwrGroundObject(TheaterGroundObject): @property def group_name(self) -> str: # Prefix the group names with the side color so Skynet can find them. - return f"{self.faction_color}|{super().group_name}" + # Use Group Id and uppercase EWR + return f"{self.faction_color}|EWR|{self.group_id}" def mission_types(self, for_player: bool) -> Iterator[FlightType]: from gen.flights.flight import FlightType