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
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

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),
),
)