mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
Fixed another crash when mod game had religion enabled but had no great prophet unit
This commit is contained in:
@ -129,6 +129,7 @@ class ReligionManager {
|
|||||||
|
|
||||||
private fun canGenerateProphet(): Boolean {
|
private fun canGenerateProphet(): Boolean {
|
||||||
if (religion == null || religionState == ReligionState.None) return false // First get a pantheon, then we'll talk about a real religion
|
if (religion == null || religionState == ReligionState.None) return false // First get a pantheon, then we'll talk about a real religion
|
||||||
|
if (getGreatProphetEquivalent() == null) return false
|
||||||
if (storedFaith < faithForNextGreatProphet()) return false
|
if (storedFaith < faithForNextGreatProphet()) return false
|
||||||
if (!civInfo.isMajorCiv()) return false
|
if (!civInfo.isMajorCiv()) return false
|
||||||
if (civInfo.hasUnique("May not generate great prophet equivalents naturally")) return false
|
if (civInfo.hasUnique("May not generate great prophet equivalents naturally")) return false
|
||||||
|
Reference in New Issue
Block a user