Fixed completing the "Found city" tutorial by AI (#8579)

This commit is contained in:
Gualdimar
2023-02-05 09:28:36 +02:00
committed by GitHub
parent a9903ad0f5
commit 0e84291476

View File

@ -182,7 +182,8 @@ object UnitActions {
return UnitAction(UnitActionType.FoundCity, action = null) return UnitAction(UnitActionType.FoundCity, action = null)
val foundAction = { val foundAction = {
UncivGame.Current.settings.addCompletedTutorialTask("Found city") if (unit.civ.playerType != PlayerType.AI)
UncivGame.Current.settings.addCompletedTutorialTask("Found city")
unit.civ.addCity(tile.position) unit.civ.addCity(tile.position)
if (tile.ruleset.tileImprovements.containsKey("City center")) if (tile.ruleset.tileImprovements.containsKey("City center"))
tile.changeImprovement("City center") tile.changeImprovement("City center")