BlockedHolyCity other way around (#7930)

This commit is contained in:
qwerty 2022-10-19 09:59:34 +02:00 committed by GitHub
parent 24e8401fad
commit b0de127a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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