mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-24 22:59:34 +07:00
City-states allied to Civs no longer attempt to declare war when it does on Civs they haven't met yet
This commit is contained in:
BIN
android/Images/TileSets/FantasyHex/Tiles/Atoll.png
Normal file
BIN
android/Images/TileSets/FantasyHex/Tiles/Atoll.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 677 B |
@ -346,14 +346,18 @@ class DiplomacyManager() {
|
|||||||
|
|
||||||
if (!civInfo.isCityState()) {
|
if (!civInfo.isCityState()) {
|
||||||
for (thirdCiv in civInfo.getKnownCivs()) {
|
for (thirdCiv in civInfo.getKnownCivs()) {
|
||||||
if (thirdCiv.isCityState() && thirdCiv.getAllyCiv() == civInfo.civName && thirdCiv.getDiplomacyManager(otherCiv).canDeclareWar()) {
|
if (thirdCiv.isCityState() && thirdCiv.getAllyCiv() == civInfo.civName
|
||||||
|
&& thirdCiv.knows(otherCiv)
|
||||||
|
&& thirdCiv.getDiplomacyManager(otherCiv).canDeclareWar()) {
|
||||||
thirdCiv.getDiplomacyManager(otherCiv).declareWar()
|
thirdCiv.getDiplomacyManager(otherCiv).declareWar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!otherCiv.isCityState()) {
|
if (!otherCiv.isCityState()) {
|
||||||
for (thirdCiv in otherCiv.getKnownCivs()) {
|
for (thirdCiv in otherCiv.getKnownCivs()) {
|
||||||
if (thirdCiv.isCityState() && thirdCiv.getAllyCiv() == otherCiv.civName && thirdCiv.getDiplomacyManager(civInfo).canDeclareWar()) {
|
if (thirdCiv.isCityState() && thirdCiv.getAllyCiv() == otherCiv.civName
|
||||||
|
&& thirdCiv.knows(otherCiv)
|
||||||
|
&& thirdCiv.getDiplomacyManager(civInfo).canDeclareWar()) {
|
||||||
thirdCiv.getDiplomacyManager(civInfo).declareWar()
|
thirdCiv.getDiplomacyManager(civInfo).declareWar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user