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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,8 @@ object UnitActions {
return UnitAction(UnitActionType.FoundCity, action = null)
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)
if (tile.ruleset.tileImprovements.containsKey("City center"))
tile.changeImprovement("City center")