瀏覽代碼

Update DefenceBehavior.cpp

A town will no longer communitcate that it doesn't need defenses, when it currently has a garrisioned hero. Because otherwise the garrisoned hero would just leave and let the town undefended.
Xilmi 1 年之前
父節點
當前提交
38da53135b
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      AI/Nullkiller/Behaviors/DefenceBehavior.cpp

+ 0 - 5
AI/Nullkiller/Behaviors/DefenceBehavior.cpp

@@ -158,11 +158,6 @@ void DefenceBehavior::evaluateDefence(Goals::TGoalVec & tasks, const CGTownInsta
 	
 	threats.push_back(threatNode.fastestDanger); // no guarantee that fastest danger will be there
 
-	if(town->garrisonHero && handleGarrisonHeroFromPreviousTurn(town, tasks, ai))
-	{
-		return;
-	}
-
 	if(!threatNode.fastestDanger.hero)
 	{
 		logAi->trace("No threat found for town %s", town->getNameTranslated());