The first-fight helper was asking the board for moves it could not make
Our automatic rescue for a stuck first fight worked out where the hero should walk by drawing a straight line. The board disagreed, and players saw a red error instead of help. Now the rescue asks the same question the game asks: which tiles can this hero actually enter this turn?
Every fight in ASHENGRID is played on a grid. Moving is not free: each step spends Movement Points, obstacles block their own tiles, and standing next to an enemy adds a disengage cost to walking away. The engine knows all of this. It publishes, every turn, the exact set of tiles the active fighter is allowed to enter.
What broke
When a new player idles in their first fight, a small rescue fires and takes one action for them so the fight cannot stall. One of its branches was supposed to close the distance to the enemy. It decided where to walk by counting cells along a straight line, up to three at a time, and then simply asked the game to move there.
That guess ignored the board. A boulder, a wall corner, or the melee disengage cost could sit exactly on the chosen cell. The engine refused the move, the client printed something like "unreachable tile or not enough movement", and the one thing meant to help a confused newcomer produced a red error instead. Worse, the helper then considered that direction tried and could end the turn without getting any closer.
Why it happened
Two parts of the same game were answering the same question differently. The planner used geometry, which is cheap and always available. The engine used the real rules, which are authoritative but change every turn. As long as the map was open ground the two agreed, so the bug stayed hidden. Add terrain and it appears immediately.
The fix
- The rescue now receives the engine's own list of legal cells for the current turn and chooses the one that gets closest to the enemy. It never invents a destination.
- If no legal cell closes the gap, because the hero is boxed in or the movement is spent, the helper ends the turn cleanly rather than sending a doomed move.
- The runtime re-checks the chosen cell against the same list before sending anything, so a stale frame cannot leak an illegal step either.
- The fallback straight-line behaviour is kept only for callers that have no board data at all, which is the offline simulation path.
What you should notice
If you leave the first fight alone for a few seconds, the hero either steps toward the enemy along tiles that actually exist, or passes the turn. You should no longer see an error message produced by the game's own assistance. Nothing about the rules, the damage numbers, or the map layout changed.
Also in this build
Dungeons are now entered by walking to the cave mouth in the world and confirming at the door, instead of picking an entry from a list. The confirmation states how many keys you still hold, and a locked door explains the two ways to get one. Separately, short notifications now draw above open panels instead of behind them, so a message that matters is no longer hidden by the window that caused it.