mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Fixed 'upon gaining unit' trigger activating for all units
This commit is contained in:
parent
e5452f5605
commit
2c7633f058
@ -72,7 +72,8 @@ class UnitManager(val civInfo:Civilization) {
|
|||||||
|
|
||||||
if (unit != null)
|
if (unit != null)
|
||||||
for (unique in civInfo.getTriggeredUniques(UniqueType.TriggerUponGainingUnit))
|
for (unique in civInfo.getTriggeredUniques(UniqueType.TriggerUponGainingUnit))
|
||||||
UniqueTriggerActivation.triggerCivwideUnique(unique, civInfo)
|
if (unit.matchesFilter(unique.params[0]))
|
||||||
|
UniqueTriggerActivation.triggerCivwideUnique(unique, civInfo)
|
||||||
return unit
|
return unit
|
||||||
}
|
}
|
||||||
fun getCivUnitsSize(): Int = unitList.size
|
fun getCivUnitsSize(): Int = unitList.size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user