mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Nullkiller: initial cleanup of unused code
This commit is contained in:
committed by
Andrii Danylchenko
parent
5344df51c6
commit
af0dcf97c4
@@ -91,6 +91,11 @@ Goals::TGoalVec CaptureObjectsBehavior::getTasks()
|
||||
if(ai->ah->getHeroRole(hero) == HeroRole::SCOUT && danger == 0 && path.exchangeCount > 1)
|
||||
continue;
|
||||
|
||||
if(path.specialAction && !path.specialAction->canAct(path.targetHero))
|
||||
{
|
||||
auto subGoal = path.specialAction->whatToDo(path.targetHero);
|
||||
}
|
||||
|
||||
auto isSafe = isSafeToVisit(hero, path.heroArmy, danger);
|
||||
|
||||
#ifdef AI_TRACE_LEVEL >= 2
|
||||
|
||||
Reference in New Issue
Block a user