Fixed "don't settle cities" demand button triggering "stop spreading religion" demand as well

This commit is contained in:
yairm210 2024-08-24 21:10:27 +03:00
parent 4a9739a643
commit 5d7b7c6bcb

View File

@ -239,8 +239,8 @@ class MajorCivDiplomacyTable(private val diplomacyScreen: DiplomacyScreen) {
val dontSpreadReligionButton = "Please don't spread your religion to us.".toTextButton()
if (otherCiv.popupAlerts.any { it.type == AlertType.DemandToStopSpreadingReligion && it.value == viewingCiv.civName })
dontSettleCitiesButton.disable()
dontSettleCitiesButton.onClick {
dontSpreadReligionButton.disable()
dontSpreadReligionButton.onClick {
otherCiv.popupAlerts.add(
PopupAlert(
AlertType.DemandToStopSpreadingReligion,