mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-13 08:14:29 +07:00
Fixed another crash when mod game had religion enabled but had no great prophet unit
This commit is contained in:
parent
619dfc5e09
commit
db78bcf00d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user