From b0de127a07e173ae06b7ae9334c63beda735d337 Mon Sep 17 00:00:00 2001 From: qwerty Date: Wed, 19 Oct 2022 09:59:34 +0200 Subject: [PATCH] BlockedHolyCity other way around (#7930) --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index 5329244d53..dd1ff7e345 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -688,10 +688,10 @@ object UnitActions { val religion = unit.civInfo.gameInfo.religions[city.religion.religionThisIsTheHolyCityOf]!! if (city.religion.religionThisIsTheHolyCityOf != unit.religion && !city.religion.isBlockedHolyCity) { religion.getFounder().addNotification("An [${unit.baseUnit.name}] has removed your religion [${religion.getReligionDisplayName()}] from its Holy City [${city.name}]!") - city.religion.isBlockedHolyCity = false + city.religion.isBlockedHolyCity = true } else if (city.religion.religionThisIsTheHolyCityOf == unit.religion && city.religion.isBlockedHolyCity) { religion.getFounder().addNotification("An [${unit.baseUnit.name}] has restored [${city.name}] as the Holy City of your religion [${religion.getReligionDisplayName()}]!") - city.religion.isBlockedHolyCity = true + city.religion.isBlockedHolyCity = false } } unit.currentMovement = 0f