Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Everything is calculated correctly. You can see that the first time, the cost of the path to the castle was 290, after spending 150 movement points, it became 270, and after spending another 150 movement points, it was back to 290. In all three cases, the correct value was displayed: that is, exactly how many movement points were needed in that situation to reach the city, and this number depends on the number of movement points the hero currently has. This is a feature of the last movement points and the fact that sometimes the cost of a diagonal movement is reduced to the cost of a straight movement, and sometimes it isn't (see physics and all that), but the HotA pathfinding algorithm takes this feature into account and shows what the cost of the path is right now, with the current number of movement points the hero has (that's why it showed 290 in two cases and 270 in one).