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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user