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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user