From 094f72dd26b2c138b4ac6c36835178b107b86b41 Mon Sep 17 00:00:00 2001 From: JackRainy Date: Wed, 19 Feb 2020 08:25:35 +0200 Subject: [PATCH] The Future Tech can't be picked as a free technology until requirements are met (#1967) --- core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt b/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt index de48722c..18551870 100644 --- a/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt +++ b/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt @@ -227,7 +227,8 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec private fun selectTechnologyForFreeTech(tech: Technology) { - if (researchableTechs.contains(tech.name) || tech.name==Constants.futureTech) { + if (researchableTechs.contains(tech.name) || + (tech.name==Constants.futureTech && civTech.canBeResearched(tech.name))) { pick("Pick [${selectedTech!!.name}] as free tech".tr()) } else { rightSideButton.setText("Pick a free tech".tr())