Skip to content

Commit

Permalink
AI does not offer open borders trade if other side already has open b…
Browse files Browse the repository at this point in the history
…orders
  • Loading branch information
yairm210 committed Nov 12, 2024
1 parent cfdfb83 commit 66357cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 66357cf

Please sign in to comment.