Fix: show move tiles after attacking (isExhausted != no MP)

_valid_move_tiles was gating on isExhausted, but the server tracks
movement and attacks independently. isExhausted=true only means the
unit has attacked this turn; movement is governed solely by currentMp.
Removing the exhaustion check restores move highlights after an attack.

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-03-16 10:48:15 -04:00
co-authored by Claude Happy
parent 085249b5c4
commit 15449f0061
@@ -1181,7 +1181,7 @@ func _valid_move_tiles(unit: Dictionary) -> Array:
var mp : int = unit.get("currentMp", 0)
var bw : int = Game.board_width()
var bh : int = Game.board_height()
if mp <= 0 or unit.get("isExhausted", false): return results
if mp <= 0: return results
for tx in range(bw):
for ty in range(bh):
var dist : int = abs(tx - ux) + abs(ty - uy)