diff --git a/core/src/com/unciv/logic/map/MapUnit.kt b/core/src/com/unciv/logic/map/MapUnit.kt index 9593f4a952..02e2b823fb 100644 --- a/core/src/com/unciv/logic/map/MapUnit.kt +++ b/core/src/com/unciv/logic/map/MapUnit.kt @@ -384,6 +384,13 @@ class MapUnit { currentMovement = getMaxMovement().toFloat() attacksThisTurn=0 due = true + + // Wake sleeping units if there's an enemy nearby + if(action==Constants.unitActionSleep && currentTile.getTilesInDistance(2).any { + it.militaryUnit!=null && it.militaryUnit!!.civInfo.isAtWarWith(civInfo) + }) + action=null + val tileOwner = getTile().getOwner() if(tileOwner!=null && !civInfo.canEnterTiles(tileOwner) && !tileOwner.isCityState()) // if an enemy city expanded onto this tile while I was in it movement.teleportToClosestMoveableTile()