Added target altitude effect to simulated fire fight

This commit is contained in:
Pax1601
2023-09-22 16:05:03 +02:00
parent 18307caab3
commit f3155e618b
9 changed files with 56 additions and 21 deletions

View File

@@ -608,8 +608,8 @@ export class Map extends L.Map {
getApp().getUnitsManager().selectedUnitsFireAtArea(this.getMouseCoordinates());
}
else if (option === "simulate-fire-fight") {
getUnitsManager().getSelectedUnits().length > 0 ? this.setState(MOVE_UNIT) : this.setState(IDLE);
getUnitsManager().selectedUnitsSimulateFireFight(this.getMouseCoordinates());
getApp().getUnitsManager().getSelectedUnits().length > 0 ? this.setState(MOVE_UNIT) : this.setState(IDLE);
getApp().getUnitsManager().selectedUnitsSimulateFireFight(this.getMouseCoordinates());
}
});
}