mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 19:08:48 -04:00
Resolved #8490 - missionaries check if inquisitors block their religion, and not the religion of the unit's owner
This commit is contained in:
parent
072f08d440
commit
4ea644aa8d
@ -295,9 +295,7 @@ class CityReligionManager : IsPartOfGameInfoSerialization {
|
||||
if (unit?.religion != null
|
||||
&& (fromReligion == null || unit.religion != fromReligion)
|
||||
&& unit.hasUnique(UniqueType.PreventSpreadingReligion)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
) return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
@ -414,7 +414,7 @@ class ReligionManager : IsPartOfGameInfoSerialization {
|
||||
if (missionary.getTile().getOwner() == null) return false
|
||||
if (missionary.currentTile.owningCity?.religion?.getMajorityReligion()?.name == missionary.religion)
|
||||
return false
|
||||
if (missionary.getTile().getCity()!!.religion.isProtectedByInquisitor(religion!!.name)) return false
|
||||
if (missionary.getTile().getCity()!!.religion.isProtectedByInquisitor(missionary.religion)) return false
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user