diff --git a/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt b/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt index c22317e25b..b345c1fb2d 100644 --- a/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt +++ b/core/src/com/unciv/logic/automation/civilization/NextTurnAutomation.kt @@ -33,6 +33,7 @@ object NextTurnAutomation { /** Top-level AI turn task list */ fun automateCivMoves(civInfo: Civilization) { if (civInfo.isBarbarian()) return BarbarianAutomation(civInfo).automate() + if (civInfo.isSpectator()) return // When there's a spectator in multiplayer games, it's processed automatically, but shouldn't be able to actually do anything respondToPopupAlerts(civInfo) TradeAutomation.respondToTradeRequests(civInfo) @@ -152,7 +153,7 @@ object NextTurnAutomation { return value // The more we have invested into the city-state the more the alliance is worth - val ourInfluence = if (civInfo.knows(cityState)) + val ourInfluence = if (civInfo.knows(cityState)) cityState.getDiplomacyManager(civInfo).getInfluence().toInt() else 0 value += ourInfluence / 10 diff --git a/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt b/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt index 58c4456268..2302851ddc 100644 --- a/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt +++ b/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt @@ -98,7 +98,7 @@ class TileImprovement : RulesetStatsObject() { return when (filter) { name -> true "All" -> true - "Improvement" -> true // For situations involing tileFilter + "Improvement" -> true // For situations involving tileFilter "All Road" -> isRoad() "Great Improvement", "Great" -> isGreatImprovement() in uniqueMap -> true