mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-15 04:14:44 +07: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)
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
@ -126,7 +126,6 @@ class UnitMovementAlgorithms(val unit: MapUnit) {
|
||||
// anyway.
|
||||
if (unit.ignoresZoneOfControl)
|
||||
return false
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user