mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Improved check for humans
This commit is contained in:
parent
4e9eab2cce
commit
e6d642994c
@ -334,7 +334,7 @@ export class UnitsManager {
|
||||
|
||||
const selectedUnits = this.getSelectedUnits();
|
||||
const selectionContainsAHuman = selectedUnits.some( ( unit:Unit ) => {
|
||||
return unit.getBaseData().AI === false;
|
||||
return unit.getMissionData().flags.human === true;
|
||||
});
|
||||
|
||||
if ( !selectionContainsAHuman || confirm( "Your selection includes a human player. Deleting humans causes their vehicle to crash.\n\nAre you sure you want to do this?" ) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user