mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
FIx bug Carrier-based aircraft not healing (#3316)
With reference to issue #3307 I think that aircraft on aircraft carriers were being treated at land units at sea. I have added the check to test whether they are being transported so that they should now heal whilst on aircraft carriers.
This commit is contained in:
@ -406,7 +406,7 @@ class MapUnit {
|
||||
|
||||
var healing = when {
|
||||
tileInfo.isCityCenter() -> 20
|
||||
tileInfo.isWater && isFriendlyTerritory && type.isWaterUnit() -> 15 // Water unit on friendly water
|
||||
tileInfo.isWater && isFriendlyTerritory && (type.isWaterUnit() || isTransported) -> 15 // Water unit on friendly water
|
||||
tileInfo.isWater -> 0 // All other water cases
|
||||
tileInfo.getOwner() == null -> 10 // Neutral territory
|
||||
isFriendlyTerritory -> 15 // Allied territory
|
||||
|
Reference in New Issue
Block a user