From 654b9f80f27821af6bbd0abb913500637a64f30d Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 10 Aug 2023 11:13:51 +0300 Subject: [PATCH] AI will not waste promotions on Heal Instantly --- core/src/com/unciv/logic/automation/unit/UnitAutomation.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt b/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt index 8d9db10962..74e37ebba1 100644 --- a/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt +++ b/core/src/com/unciv/logic/automation/unit/UnitAutomation.kt @@ -158,6 +158,7 @@ object UnitAutomation { if (unit.promotions.canBePromoted()) { val availablePromotions = unit.promotions.getAvailablePromotions() + .filterNot { it.hasUnique(UniqueType.SkipPromotion) } if (availablePromotions.any()) unit.promotions.addPromotion(availablePromotions.toList().random().name) }