Added "[unitTriggerTarget] is destroyed" unit triggerable

This commit is contained in:
yairm210 2024-08-22 10:31:05 +03:00
parent 072c3786c4
commit eadc7b24a2
2 changed files with 9 additions and 0 deletions

View File

@ -984,6 +984,13 @@ object UniqueTriggerActivation {
true
}
}
UniqueType.OneTimeUnitDestroyed -> {
if (unit == null) return null
return {
unit.destroy()
true
}
}
UniqueType.OneTimeUnitUpgrade, UniqueType.OneTimeUnitSpecialUpgrade,
UniqueType.OneTimeUnitUpgradeOld, UniqueType.OneTimeUnitSpecialUpgradeOld -> {
if (unit == null) return null

View File

@ -885,6 +885,8 @@ enum class UniqueType(
docDescription = "Statuses are temporary promotions. They do not stack, and reapplying a specific status take the highest number - so reapplying a 3-turn on a 1-turn makes it 3, but doing the opposite will have no effect. " +
"Turns left on the status decrease at the *start of turn*, so bonuses applied for 1 turn are stll applied during other civ's turns."),
OneTimeUnitLoseStatus("[unitTriggerTarget] loses the [promotion] status", UniqueTarget.UnitTriggerable),
OneTimeUnitDestroyed("[unitTriggerTarget] is destroyed", UniqueTarget.UnitTriggerable),
//endregion