Browse Source

Recruit-behavior

Moved recruit-behavior back to tasks that plans get made for since otherwise it can mess up plans by blocking town-exits.
Xilmi 1 year ago
parent
commit
102b537353
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AI/Nullkiller/Engine/Nullkiller.cpp

+ 1 - 1
AI/Nullkiller/Engine/Nullkiller.cpp

@@ -378,7 +378,6 @@ void Nullkiller::makeTurn()
 		{
 			bestTasks.clear();
 
-			decompose(bestTasks, sptr(RecruitHeroBehavior()), 1);
 			decompose(bestTasks, sptr(BuyArmyBehavior()), 1);
 			decompose(bestTasks, sptr(BuildingBehavior()), 1);
 
@@ -397,6 +396,7 @@ void Nullkiller::makeTurn()
 			}
 		}
 
+		decompose(bestTasks, sptr(RecruitHeroBehavior()), 1);
 		decompose(bestTasks, sptr(CaptureObjectsBehavior()), 1);
 		decompose(bestTasks, sptr(ClusterBehavior()), MAX_DEPTH);
 		decompose(bestTasks, sptr(DefenceBehavior()), MAX_DEPTH);