1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

Tactics movement is limited to movement range

This commit is contained in:
krs
2023-04-21 00:24:37 +03:00
committed by Nordsoft91
parent c899956e71
commit e348193f7e
8 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ BattleAction CBattleAI::activeStack( const CStack * stack )
BattleAction CBattleAI::goTowardsNearest(const CStack * stack, std::vector<BattleHex> hexes) const
{
auto reachability = cb->getReachability(stack);
auto avHexes = cb->battleGetAvailableHexes(reachability, stack, true);
auto avHexes = cb->battleGetAvailableHexes(reachability, stack, false);
if(!avHexes.size() || !hexes.size()) //we are blocked or dest is blocked
{