mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:14:25 +07:00
AI does not offer open borders trade if other side already has open borders
This commit is contained in:
parent
cfdfb839c5
commit
66357cf729
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user