If you're at war with someone, then 'please don't settle cities near us' is irrelevant

This commit is contained in:
Yair Morgenstern 2020-02-04 09:20:45 +02:00
parent 748168398e
commit 7ac515ad6e

View file

@ -515,7 +515,7 @@ class NextTurnAutomation{
private fun issueRequests(civInfo: CivilizationInfo) {
for(otherCiv in civInfo.getKnownCivs().filter { it.isMajorCiv() }){
for(otherCiv in civInfo.getKnownCivs().filter { it.isMajorCiv() && !civInfo.isAtWarWith(it) }){
val diploManager = civInfo.getDiplomacyManager(otherCiv)
if(diploManager.hasFlag(DiplomacyFlags.SettledCitiesNearUs))
onCitySettledNearBorders(civInfo,otherCiv)