From 98afd43969314a97ac20551b8ddba0008b0a0326 Mon Sep 17 00:00:00 2001 From: Andrii Danylchenko Date: Sun, 12 May 2024 21:10:31 +0300 Subject: [PATCH] #3941 - recruit hero when no heroes --- AI/Nullkiller/Engine/Nullkiller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI/Nullkiller/Engine/Nullkiller.cpp b/AI/Nullkiller/Engine/Nullkiller.cpp index 2be3bf7f7..c7183924c 100644 --- a/AI/Nullkiller/Engine/Nullkiller.cpp +++ b/AI/Nullkiller/Engine/Nullkiller.cpp @@ -354,7 +354,7 @@ void Nullkiller::makeTurn() decompose(bestTasks, sptr(GatherArmyBehavior()), MAX_DEPTH); decompose(bestTasks, sptr(StayAtTownBehavior()), MAX_DEPTH); - if(cb->getDate(Date::DAY) == 1) + if(cb->getDate(Date::DAY) == 1 || heroManager->getHeroRoles().empty()) { decompose(bestTasks, sptr(StartupBehavior()), 1); }