浏览代码

Update BuildingBehavior.cpp

No longer rush a fort in a threatened town.
Xilmi 1 年之前
父节点
当前提交
aefe2fda36
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AI/Nullkiller/Behaviors/BuildingBehavior.cpp

+ 1 - 1
AI/Nullkiller/Behaviors/BuildingBehavior.cpp

@@ -63,7 +63,7 @@ Goals::TGoalVec BuildingBehavior::decompose(const Nullkiller * ai) const
 		{
 			if (closestThreat <= 1 && developmentInfo.town->fortLevel() < CGTownInstance::EFortLevel::CASTLE && !buildingInfo.notEnoughRes)
 			{
-				if (buildingInfo.id == BuildingID::FORT || buildingInfo.id == BuildingID::CITADEL || buildingInfo.id == BuildingID::CASTLE)
+				if (buildingInfo.id == BuildingID::CITADEL || buildingInfo.id == BuildingID::CASTLE)
 				{
 					tasks.push_back(sptr(BuildThis(buildingInfo, developmentInfo)));
 					emergencyDefense = true;