diff --git a/core/src/com/unciv/models/ruleset/Unique.kt b/core/src/com/unciv/models/ruleset/Unique.kt index 5ee8b10e99..eb19be9d07 100644 --- a/core/src/com/unciv/models/ruleset/Unique.kt +++ b/core/src/com/unciv/models/ruleset/Unique.kt @@ -78,6 +78,15 @@ object UniqueTriggerActivation { "+20% attack bonus to all Military Units for 30 turns" -> civInfo.policies.autocracyCompletedTurns = 30 "Reveals the entire map" -> civInfo.exploredTiles.addAll(civInfo.gameInfo.tileMap.values.asSequence().map { it.position }) + + "[] units gain the [] promotion" -> { + val filter = unique.params[0] + val promotion = unique.params[1] + for (unit in civInfo.getCivUnits()) + if (unit.matchesCategory(filter) + || (civInfo.gameInfo.ruleSet.unitPromotions.values.any { it.name == promotion + && unit.type.name in it.unitTypes })) + unit.promotions.addPromotion(promotion, isFree = true)} } }