Only use 'Player' skill as flight-lead

This commit is contained in:
Raffson 2023-06-25 13:43:59 +02:00
parent ab66846967
commit 5368c06650
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -29,7 +29,6 @@ from .flightdata import FlightData
from .waypoints import WaypointGenerator from .waypoints import WaypointGenerator
from ...ato.flightplans.aewc import AewcFlightPlan from ...ato.flightplans.aewc import AewcFlightPlan
from ...ato.flightplans.theaterrefueling import TheaterRefuelingFlightPlan from ...ato.flightplans.theaterrefueling import TheaterRefuelingFlightPlan
from ...ato.flightwaypointtype import FlightWaypointType
from ...theater import Fob from ...theater import Fob
if TYPE_CHECKING: if TYPE_CHECKING:
@ -220,7 +219,7 @@ class FlightGroupConfigurator:
unit.skill = self.skill_level_for(unit, pilot) unit.skill = self.skill_level_for(unit, pilot)
return return
if self.use_client: if self.use_client or "Pilot #1" not in unit.name:
unit.set_client() unit.set_client()
else: else:
unit.set_player() unit.set_player()