Fix after-pillage display (#6255)

This commit is contained in:
SomeTroglodyte 2022-03-05 19:03:09 +01:00 committed by GitHub
parent c503f840d1
commit e7fc1a565f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,6 +287,7 @@ object UnitActions {
tile.turnsToImprovement = 2
}
tile.improvement = null
unit.civInfo.lastSeenImprovement.remove(tile.position)
if (tile.resource != null) tile.getOwner()?.updateDetailedCivResources() // this might take away a resource
val freePillage = unit.hasUnique(UniqueType.NoMovementToPillage, checkCivInfoUniques = true)