From 8042402c1ca0aeda0256d2e01e4b8bc6fdddd810 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 6 Jul 2023 00:38:59 +0300 Subject: [PATCH] Fixed tile filter for civ-related conditions for "upon ending a turn in a [tileFilter] tile" trigger --- core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt b/core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt index 864e0b3b23..76ce97598a 100644 --- a/core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt +++ b/core/src/com/unciv/logic/map/mapunit/UnitTurnManager.kt @@ -60,7 +60,7 @@ class UnitTurnManager(val unit: MapUnit) { for (unique in unit.getTriggeredUniques(UniqueType.TriggerUponEndingTurnInTile)) if (unique.conditionals.any { it.type == UniqueType.TriggerUponEndingTurnInTile - && unit.getTile().matchesFilter(it.params[0]) }) + && unit.getTile().matchesFilter(it.params[0], unit.civ) }) UniqueTriggerActivation.triggerUnitwideUnique(unique, unit) }