If the best Task is to recruit a hero this now triggers pathfinding again as the newly bought hero may impair other heroe's paths.
@@ -397,7 +397,12 @@ void Nullkiller::makeTurn()
if(!executeTask(bestTask))
return;
- updateAiState(i, true);
+ bool fastUpdate = true;
+
+ if (bestTask->getHero() != nullptr)
+ fastUpdate = false;
+ updateAiState(i, fastUpdate);
}
else
{