From 5b627389bf87fc74f31ddc1ed646274a9db4ac14 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Sat, 21 Sep 2024 22:44:01 +0300 Subject: [PATCH] Resolved #12176 - Great prophets bought in city with different religion do not get incorrect warning popup --- .../com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt b/core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt index 6c0f3e7c20..83cd2e0be4 100644 --- a/core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt +++ b/core/src/com/unciv/ui/screens/cityscreen/CityConstructionsTable.kt @@ -699,7 +699,9 @@ class CityConstructionsTable(private val cityScreen: CityScreen) { val balance = city.getStatReserve(stat) val majorityReligion = city.religion.getMajorityReligion() val yourReligion = city.civ.religionManager.religion - val isBuyingWithFaithForForeignReligion = construction.hasUnique(UniqueType.ReligiousUnit) && majorityReligion != yourReligion + val isBuyingWithFaithForForeignReligion = construction.hasUnique(UniqueType.ReligiousUnit) + && !construction.hasUnique(UniqueType.TakeReligionOverBirthCity) + && majorityReligion != yourReligion addGoodSizedLabel("Currently you have [$balance] [${stat.name}].").padBottom(10f).row() if (isBuyingWithFaithForForeignReligion) {