From 720b3546ebcbfd0dba34a2b4b8f0bf1f068f71d9 Mon Sep 17 00:00:00 2001 From: Duan Tao Date: Tue, 23 Apr 2019 18:51:14 +0800 Subject: [PATCH] Fix national wonders 'building elsewhere' tip. --- core/src/com/unciv/models/gamebasics/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/gamebasics/Building.kt b/core/src/com/unciv/models/gamebasics/Building.kt index c3a854dfe2..e082c3a4c0 100644 --- a/core/src/com/unciv/models/gamebasics/Building.kt +++ b/core/src/com/unciv/models/gamebasics/Building.kt @@ -218,7 +218,7 @@ class Building : NamedStats(), IConstruction{ if (civInfo.cities.any {it.cityConstructions.isBuilt(name) }) return "Wonder is already built" - if (civInfo.cities.any {it.cityConstructions.isBeingConstructed(name) }) + if (civInfo.cities.any {it!=construction.cityInfo && it.cityConstructions.isBeingConstructed(name) }) return "Wonder is being built elsewhere" }