mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 07:39:44 +07:00
Fixed "don't settle cities" demand button triggering "stop spreading religion" demand as well
This commit is contained in:
@ -239,8 +239,8 @@ class MajorCivDiplomacyTable(private val diplomacyScreen: DiplomacyScreen) {
|
|||||||
|
|
||||||
val dontSpreadReligionButton = "Please don't spread your religion to us.".toTextButton()
|
val dontSpreadReligionButton = "Please don't spread your religion to us.".toTextButton()
|
||||||
if (otherCiv.popupAlerts.any { it.type == AlertType.DemandToStopSpreadingReligion && it.value == viewingCiv.civName })
|
if (otherCiv.popupAlerts.any { it.type == AlertType.DemandToStopSpreadingReligion && it.value == viewingCiv.civName })
|
||||||
dontSettleCitiesButton.disable()
|
dontSpreadReligionButton.disable()
|
||||||
dontSettleCitiesButton.onClick {
|
dontSpreadReligionButton.onClick {
|
||||||
otherCiv.popupAlerts.add(
|
otherCiv.popupAlerts.add(
|
||||||
PopupAlert(
|
PopupAlert(
|
||||||
AlertType.DemandToStopSpreadingReligion,
|
AlertType.DemandToStopSpreadingReligion,
|
||||||
|
Reference in New Issue
Block a user