AI does not offer open borders trade if other side already has open borders

This commit is contained in:
yairm210 2024-11-12 23:13:15 +02:00
parent cfdfb839c5
commit 66357cf729

View File

@ -116,6 +116,7 @@ object DiplomacyAutomation {
it.isMajorCiv() && !civInfo.isAtWarWith(it)
&& it.hasUnique(UniqueType.EnablesOpenBorders)
&& !civInfo.getDiplomacyManager(it)!!.hasOpenBorders
&& !it.getDiplomacyManager(civInfo)!!.hasOpenBorders
&& !civInfo.getDiplomacyManager(it)!!.hasFlag(DiplomacyFlags.DeclinedOpenBorders)
&& !areWeOfferingTrade(civInfo, it, Constants.openBorders)
}.sortedByDescending { it.getDiplomacyManager(civInfo)!!.relationshipLevel() }.toList()