Allow terramorpha to re-select first tile as third pick

For tri-morpha, tile 1 is adjacent to tile 2, so it must be a valid
choice for tile 3. The previous duplicate guard blocked this.

The adjacency check (_board_distance != 1) already prevents picking the
same tile back-to-back (distance 0), so the dedup was redundant and
only hurt the re-pick case. Removed both the click-handler guard and
the matching skip in the next-pick highlight loop.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-04-07 14:49:16 -04:00
co-authored by Claude Happy
parent aa8fa34a05
commit 232e06de6d
@@ -2916,9 +2916,7 @@ func _handle_board_click(mouse_pos: Vector2) -> void:
var last : Vector2i = _terra_targets.back()
if _board_distance(coord.x, coord.y, last.x, last.y) != 1:
return # must be adjacent
# Avoid duplicates.
print("Handle Board Click: terra targets: ", _terra_targets)
if _terra_targets.has(coord): return
_terra_targets.append(coord)
print("Added Target")
if _terra_targets.size() >= _terra_count:
@@ -2948,7 +2946,6 @@ func _handle_board_click(mouse_pos: Vector2) -> void:
var ny := last2.y + d.y
if nx < 0 or ny < 0 or nx >= bw2 or ny >= bh2: continue
if not _tile_bodies.has("%d,%d" % [nx, ny]): continue
if _terra_targets.has(Vector2i(nx, ny)): continue
_add_highlight(nx, ny, "movement")
Mode.UNIT_SELECTED: