Fixed tile filter for civ-related conditions for "upon ending a turn in a [tileFilter] tile" trigger

This commit is contained in:
Yair Morgenstern 2023-07-06 00:38:59 +03:00
parent 5ea1d5722b
commit 8042402c1c

View File

@ -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)
}