mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-04 06:33:32 +07:00
Resolved #1533 - Defeated city states no longer "declare war" if you attack their ally
This commit is contained in:
parent
8e0d90ad8d
commit
94414203ef
@ -9,9 +9,9 @@ import com.unciv.logic.civilization.PopupAlert
|
||||
import com.unciv.logic.trade.Trade
|
||||
import com.unciv.logic.trade.TradeType
|
||||
import com.unciv.models.ruleset.tile.ResourceSupplyList
|
||||
import kotlin.math.ceil
|
||||
import kotlin.math.max
|
||||
import kotlin.math.min
|
||||
import kotlin.math.ceil
|
||||
|
||||
enum class RelationshipLevel{
|
||||
Unforgivable,
|
||||
@ -395,6 +395,7 @@ class DiplomacyManager() {
|
||||
if (!otherCiv.isCityState()) {
|
||||
for (thirdCiv in otherCiv.getKnownCivs()) {
|
||||
if (thirdCiv.isCityState() && thirdCiv.getAllyCiv() == otherCiv.civName
|
||||
&& !thirdCiv.isDefeated()
|
||||
&& thirdCiv.knows(civInfo)
|
||||
&& thirdCiv.getDiplomacyManager(civInfo).canDeclareWar()) {
|
||||
thirdCiv.getDiplomacyManager(civInfo).declareWar()
|
||||
|
Loading…
Reference in New Issue
Block a user