From 6df6a1a071e10e6dd413c1f69ae8e684cb679f8c Mon Sep 17 00:00:00 2001 From: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com> Date: Sat, 28 Oct 2023 23:12:58 +0200 Subject: [PATCH] Fix Ruins-Undo exploit --- core/src/com/unciv/logic/map/mapunit/MapUnit.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/unciv/logic/map/mapunit/MapUnit.kt b/core/src/com/unciv/logic/map/mapunit/MapUnit.kt index 73f6c6688c..8ea3bf1b79 100644 --- a/core/src/com/unciv/logic/map/mapunit/MapUnit.kt +++ b/core/src/com/unciv/logic/map/mapunit/MapUnit.kt @@ -2,6 +2,7 @@ package com.unciv.logic.map.mapunit import com.badlogic.gdx.math.Vector2 import com.unciv.Constants +import com.unciv.GUI import com.unciv.logic.IsPartOfGameInfoSerialization import com.unciv.logic.automation.unit.UnitAutomation import com.unciv.logic.battle.BattleUnitCapture @@ -750,6 +751,7 @@ class MapUnit : IsPartOfGameInfoSerialization { private fun getAncientRuinBonus(tile: Tile) { tile.removeImprovement() civ.ruinsManager.selectNextRuinsReward(this) + GUI.clearUndoCheckpoints() } fun assignOwner(civInfo: Civilization, updateCivInfo: Boolean = true) {