Enabled mixed-group actions, fixed some helicopter messages.

This commit is contained in:
PeekabooSteam
2023-11-03 18:17:40 +00:00
parent 2e5ee93361
commit 31405119f0
2 changed files with 49 additions and 32 deletions

View File

@@ -620,7 +620,7 @@ export class Map extends L.Map {
if (selectedUnits.every((unit: Unit) => { return unit.canTargetPoint()})) {
options["bomb"] = { text: "Precision bombing", tooltip: "Precision bombing of a specific point" };
options["carpet-bomb"] = { text: "Carpet bombing", tooltip: "Carpet bombing close to a point" };
} else {
} else if (selectedUnitTypes[0] !== "Helicopter") {
(getApp().getPopupsManager().get("infoPopup") as Popup).setText(`Selected units can not perform point actions.`);
}
}