mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 15:27:27 +07:00
Fix unit triggers not triggering/triggering off the wrong units (#10496)
This commit is contained in:
parent
6fe9b7ea7f
commit
accb62a0ed
@ -85,7 +85,7 @@ class UnitManager(val civInfo:Civilization) {
|
||||
UniqueTriggerActivation.triggerUnitwideUnique(unique, unit, triggerNotificationText = triggerNotificationText)
|
||||
for (unique in civInfo.getTriggeredUniques(UniqueType.TriggerUponGainingUnit))
|
||||
if (unique.conditionals.any { it.isOfType(UniqueType.TriggerUponGainingUnit) &&
|
||||
unit.matchesFilter(unique.params[0]) })
|
||||
unit.matchesFilter(it.params[0]) })
|
||||
UniqueTriggerActivation.triggerCivwideUnique(unique, civInfo, triggerNotificationText = triggerNotificationText)
|
||||
if (unit.getResourceRequirementsPerTurn().isNotEmpty())
|
||||
civInfo.cache.updateCivResources()
|
||||
|
Loading…
Reference in New Issue
Block a user