1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

overall refactoring, HeroPtr adjustments, AiNodeStorage remove unnecessary callback

This commit is contained in:
Mircea TheHonestCTO
2025-09-04 00:07:12 +02:00
parent 19076ee29d
commit 7a40981a95
22 changed files with 209 additions and 208 deletions

View File

@@ -427,7 +427,7 @@ void ObjectClusterizer::clusterizeObject(
logAi->trace("ObjectClusterizer Checking path %s", path.toString());
#endif
if(aiNk->heroManager->getHeroRole(path.targetHero) == HeroRole::SCOUT)
if(aiNk->heroManager->getHeroRoleOrDefaultInefficient(path.targetHero) == HeroRole::SCOUT)
{
// TODO: Mircea: Shouldn't this be linked with scoutHeroTurnDistanceLimit?
// TODO: Mircea: Move to constant