mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
Block repairs in Hostile Tiles
This commit is contained in:
parent
60f704ecf3
commit
ae1a2e9ece
|
|
@ -395,6 +395,7 @@ object UnitActions {
|
|||
val tile = unit.getTile()
|
||||
if (tile.isCityCenter()) return
|
||||
if (!tile.isPillaged()) return
|
||||
if (tile.getOwner() != null && unit.civInfo.isAtWarWith(tile.getOwner()!!)) return
|
||||
|
||||
val couldConstruct = unit.currentMovement > 0
|
||||
&& !tile.isCityCenter() && tile.improvementInProgress != Constants.repair
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user