Account for aircaft's task-priorities in AirWing.best_squadrons_for

This commit is contained in:
Raffson
2024-09-15 20:59:40 +02:00
parent f5bb653ad8
commit 2cba1f4124

View File

@@ -89,6 +89,7 @@ class AirWing:
# This looks like the opposite of what we want because False sorts
# before True.
s.primary_task != task,
best_aircraft.index(s.aircraft),
s.location.distance_to(location),
),
)