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:
jnecus
2020-11-03 18:10:54 +00:00
committed by GitHub
parent d240c12292
commit b5c9fb79bf

View File

@ -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