Improved filter logic

This commit is contained in:
PeekabooSteam 2023-10-17 11:27:21 +01:00
parent c0aee94da5
commit 1413f596fb

View File

@ -310,7 +310,7 @@ export class ControlTipsPlugin implements OlympusPlugin {
"action": "Add hotgroup to selection",
"callback": ( tip:object ) => {
return (Object.values<Unit>( this.#app.getUnitsManager().getUnits() ).some( ( unit:Unit ) => {
return unit.getHotgroup();
return unit.getAlive() && unit.getControlled() && unit.getHotgroup();
}));
},
"showIfUnitSelected": true,