mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
AI will not waste promotions on Heal Instantly
This commit is contained in:
parent
95b8fab950
commit
654b9f80f2
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user