mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Revert "Missionaries no longer restricted from spreading religion in city where it's already the major religion"
This reverts commit 604b9f10e784e61434fac8865933d2e81bf4d57e.
This commit is contained in:
parent
2a6516d15e
commit
246142dffc
@ -1028,9 +1028,6 @@ class CivilizationInfoPreview() {
|
||||
playerType = civilization.playerType
|
||||
playerId = civilization.playerId
|
||||
}
|
||||
|
||||
// For easier debugging
|
||||
override fun toString(): String = "$civName ($playerType) $playerId"
|
||||
}
|
||||
|
||||
enum class CivFlags {
|
||||
|
@ -445,6 +445,8 @@ class ReligionManager : IsPartOfGameInfoSerialization {
|
||||
fun maySpreadReligionNow(missionary: MapUnit): Boolean {
|
||||
if (!maySpreadReligionAtAll(missionary)) return false
|
||||
if (missionary.getTile().getOwner() == null) return false
|
||||
if (missionary.currentTile.owningCity?.religion?.getMajorityReligion()?.name == missionary.religion)
|
||||
return false
|
||||
if (missionary.getTile().getCity()!!.religion.isProtectedByInquisitor(missionary.religion)) return false
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user