mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-22 02:07:43 +07:00
Fixed "don't settle cities" demand button triggering "stop spreading religion" demand as well
This commit is contained in:
parent
4a9739a643
commit
5d7b7c6bcb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user