mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-08 01:54:02 +07:00
Missionaries no longer restricted from spreading religion in city where it's already the major religion
This commit is contained in:
parent
50f00d64c4
commit
604b9f10e7
@ -1028,6 +1028,9 @@ class CivilizationInfoPreview() {
|
||||
playerType = civilization.playerType
|
||||
playerId = civilization.playerId
|
||||
}
|
||||
|
||||
// For easier debugging
|
||||
override fun toString(): String = "$civName ($playerType) $playerId"
|
||||
}
|
||||
|
||||
enum class CivFlags {
|
||||
|
@ -445,8 +445,6 @@ 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…
Reference in New Issue
Block a user