From 02efb98cec98beebfc33240344f1356381b623aa Mon Sep 17 00:00:00 2001 From: Wrycu Date: Sat, 25 Jan 2020 19:33:32 -0800 Subject: [PATCH] fix(mission): correct armor counting as assigned aircraft --- ui/eventmenu.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/eventmenu.py b/ui/eventmenu.py index 6132ba6..f0affef 100644 --- a/ui/eventmenu.py +++ b/ui/eventmenu.py @@ -226,8 +226,13 @@ def dampen_count(for_task: typing.Type[Task], unit_type: typing.Type[UnitType], self.event.player_defending(flights) + ignore_slots = [ + 'Pinpoint Strike', + ] slot_count = 0 for flight_details in flights.items(): + if flight_details[0].name in ignore_slots: + continue for flight in flight_details[1:]: for aircraft in flight.items(): slot_count += aircraft[1][0]