Fixed another crash when mod game had religion enabled but had no great prophet unit

This commit is contained in:
yairm210 2021-09-11 23:07:39 +03:00
parent 619dfc5e09
commit db78bcf00d

View File

@ -129,6 +129,7 @@ class ReligionManager {
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 (getGreatProphetEquivalent() == null) return false
if (storedFaith < faithForNextGreatProphet()) return false
if (!civInfo.isMajorCiv()) return false
if (civInfo.hasUnique("May not generate great prophet equivalents naturally")) return false