diff --git a/src/client/hud/layers/RadialMenuElements.ts b/src/client/hud/layers/RadialMenuElements.ts index c27ff668d..1d10654b4 100644 --- a/src/client/hud/layers/RadialMenuElements.ts +++ b/src/client/hud/layers/RadialMenuElements.ts @@ -528,6 +528,7 @@ export const deleteUnitElement: MenuElement = { (unit) => !unit.isUnderConstruction() && unit.markedForDeletion() === false && + Structures.has(unit.type()) && params.game.manhattanDist(unit.tile(), params.tile) <= DELETE_SELECTION_RADIUS, ); @@ -552,8 +553,11 @@ export const deleteUnitElement: MenuElement = { .units() .filter( (unit) => + !unit.isUnderConstruction() && + unit.markedForDeletion() === false && + Structures.has(unit.type()) && params.game.manhattanDist(unit.tile(), params.tile) <= - DELETE_SELECTION_RADIUS, + DELETE_SELECTION_RADIUS, ); const closestUnit = findClosestBy(myUnits, (unit) =>