Ver Fonte

Update BuildingBehavior.cpp

No longer rush a fort in a threatened town.
Xilmi há 1 ano atrás
pai
commit
aefe2fda36
1 ficheiros alterados com 1 adições e 1 exclusões
  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;