mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Fix Zone of Control (#6891)
This commit is contained in:
parent
915f3e694f
commit
8b9946e65e
@ -92,7 +92,7 @@ class UnitMovementAlgorithms(val unit: MapUnit) {
|
|||||||
yield(tile)
|
yield(tile)
|
||||||
}
|
}
|
||||||
else if (tile.militaryUnit != null && civInfo.isAtWarWith(tile.militaryUnit!!.civInfo)) {
|
else if (tile.militaryUnit != null && civInfo.isAtWarWith(tile.militaryUnit!!.civInfo)) {
|
||||||
if (tile.militaryUnit!!.type.isWaterUnit() || (unit.type.isLandUnit() && tile.militaryUnit!!.isEmbarked()))
|
if (tile.militaryUnit!!.type.isWaterUnit() || (unit.type.isLandUnit() && !tile.militaryUnit!!.isEmbarked()))
|
||||||
yield(tile)
|
yield(tile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -126,7 +126,6 @@ class UnitMovementAlgorithms(val unit: MapUnit) {
|
|||||||
// anyway.
|
// anyway.
|
||||||
if (unit.ignoresZoneOfControl)
|
if (unit.ignoresZoneOfControl)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user