From 9a9ef78583ee54e140254e7aa29511c5a3fa3d96 Mon Sep 17 00:00:00 2001 From: walterroach Date: Mon, 9 Nov 2020 13:34:56 -0600 Subject: [PATCH] Fix statics not being killed in debrief --- game/event/event.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/game/event/event.py b/game/event/event.py index 5eda578b..1f8742fc 100644 --- a/game/event/event.py +++ b/game/event/event.py @@ -144,8 +144,12 @@ class Event: for i, ground_object in enumerate(cp.ground_objects): if ground_object.is_dead: continue - - if ground_object.is_same_group(destroyed_ground_unit_name): + + if ( + (ground_object.group_name == destroyed_ground_unit_name) + or + (ground_object.is_same_group(destroyed_ground_unit_name)) + ): logging.info("cp {} killing ground object {}".format(cp, ground_object.group_name)) cp.ground_objects[i].is_dead = True