From 488ec9f82fe4b754e06f838de8171b7b29d19985 Mon Sep 17 00:00:00 2001 From: itanasi <44038014+itanasi@users.noreply.github.com> Date: Sun, 30 Jul 2023 07:36:38 -0700 Subject: [PATCH] Fix logic in Fog Busting (#9855) --- core/src/com/unciv/logic/automation/unit/UnitAutomation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt b/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt index d05cb3608f..8d9db10962 100644 --- a/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt +++ b/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt @@ -79,7 +79,7 @@ object UnitAutomation { // If everything around this unit is visible, we can stop. // Calculations below are quite expensive especially in the late game. - if (unit.currentTile.getTilesInDistance(5).any { !it.isVisible(unit.civ) }) { + if (unit.currentTile.getTilesInDistance(5).all { it.isVisible(unit.civ) }) { return false }