diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-12-21 14:15:11 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-12-21 14:15:11 +0100 |
commit | 5b35174ffab42f0331f1a6527ef6bbab7a3dbdcb (patch) | |
tree | 071530353b02f45fffc26aa4b0f43f7b901b3046 /Game/States/Build | |
parent | a854a1862a30632e49520f6e1e11333d5c8ff241 (diff) |
Diffstat (limited to 'Game/States/Build')
-rw-r--r-- | Game/States/Build/StateBuild.gd | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Game/States/Build/StateBuild.gd b/Game/States/Build/StateBuild.gd index 0bd5efb..303a2b1 100644 --- a/Game/States/Build/StateBuild.gd +++ b/Game/States/Build/StateBuild.gd @@ -8,9 +8,8 @@ static var current_builder_element: BuilderElement func _state_enter(): %BuildGrid.visible = true - if Tower.selected_towers: - for tower in Tower.selected_towers.duplicate(): - tower.is_selected = false + for tower: Tower in Client.selection.get_nodes().duplicate(): + tower.is_selected = false func _state_exit(): |