mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Fix medic promotion healing enemies (#7074)
This commit is contained in:
parent
bbe74854b4
commit
7ae54aceb1
@ -826,7 +826,8 @@ class MapUnit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val maxAdjacentHealingBonus = currentTile.neighbors
|
val maxAdjacentHealingBonus = currentTile.neighbors
|
||||||
.flatMap { it.getUnits().asSequence() }.map { it.adjacentHealingBonus() }.maxOrNull()
|
.flatMap { it.getUnits().asSequence() }.filter { it.civInfo == civInfo }
|
||||||
|
.map { it.adjacentHealingBonus() }.maxOrNull()
|
||||||
if (maxAdjacentHealingBonus != null)
|
if (maxAdjacentHealingBonus != null)
|
||||||
healing += maxAdjacentHealingBonus
|
healing += maxAdjacentHealingBonus
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user