Fix Ruins-Undo exploit

This commit is contained in:
SomeTroglodyte 2023-10-28 23:12:58 +02:00
parent 24e7384f4a
commit 6df6a1a071

View File

@ -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) {