Updated landAtPoint logic

This commit is contained in:
PeekabooSteam
2023-11-03 18:28:05 +00:00
parent 31405119f0
commit 7106646042
2 changed files with 8 additions and 4 deletions

View File

@@ -636,6 +636,10 @@ export class Unit extends CustomMarker {
return getApp().getMap().getBounds().contains(this.getPosition());
}
canLandAtPoint() {
return this.getCategory() === "Helicopter"; // Only choppers can do this currently
}
canTargetPoint() {
return this.getDatabase()?.getByName(this.#name)?.canTargetPoint === true;
}