From 3ff78ef6b36dd393669fd57977c996eae50af801 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 8 Jul 2019 18:03:45 +0300 Subject: [PATCH] Fishing boats can no longer create oil wells in cities with oil --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index 0d477640f6..f1cd34f55d 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -174,6 +174,7 @@ class UnitActions { for(improvement in listOf("Fishing Boats","Oil well")) { if (unit.hasUnique("May create improvements on water resources") && tile.resource != null + && tile.isWater // because fishing boats can enter cities, and if there's oil in the city... ;) && tile.improvement==null && tile.getTileResource().improvement == improvement && unit.civInfo.tech.isResearched(GameBasics.TileImprovements[improvement]!!.techRequired!!)