Skip to content

Commit

Permalink
Merge pull request #4822 from IllianiCBT/unitAssignment_conventionalF…
Browse files Browse the repository at this point in the history
…ighters

Removed Ability to Assign AeroSpace Pilots to Conventional Aircraft
  • Loading branch information
IllianiCBT authored Sep 13, 2024
2 parents fa24973 + 194a17f commit f2c597f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public boolean isAerospaceGrouping() {
}

public boolean isConventionalAirGrouping() {
return isAerospaceGrouping() || isConventionalAircraftPilot();
return isConventionalAircraftPilot();
}

public boolean isGroundVehicleCrew() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,7 @@ void testIsAerospaceGrouping() {
@Test
void testIsConventionalAirGrouping() {
for (final PersonnelRole personnelRole : roles) {
if ((personnelRole == PersonnelRole.LAM_PILOT)
|| (personnelRole == PersonnelRole.AEROSPACE_PILOT)
|| (personnelRole == PersonnelRole.CONVENTIONAL_AIRCRAFT_PILOT)) {
if (personnelRole == PersonnelRole.CONVENTIONAL_AIRCRAFT_PILOT) {
assertTrue(personnelRole.isConventionalAirGrouping());
} else {
assertFalse(personnelRole.isConventionalAirGrouping());
Expand Down

0 comments on commit f2c597f

Please sign in to comment.