Fix Khan unit (#5207)

* fix khan unique

* fix adjacent healing bonus

* plus

* Khan heals itself also

* nerf medic
This commit is contained in:
SimonCeder
2021-09-14 23:35:16 +02:00
committed by GitHub
parent 86bbf54cc0
commit 672d2a3c34
3 changed files with 4 additions and 4 deletions

View File

@ -571,7 +571,7 @@ class MapUnit {
amountToHealBy += getMatchingUniques("[] HP when healing").sumOf { it.params[0].toInt() }
val maxAdjacentHealingBonus = currentTile.getTilesInDistance(1)
val maxAdjacentHealingBonus = currentTile.neighbors
.flatMap { it.getUnits().asSequence() }.map { it.adjacentHealingBonus() }.maxOrNull()
if (maxAdjacentHealingBonus != null)
amountToHealBy += maxAdjacentHealingBonus