mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 20:59:18 +07:00
Fix: barbarians pillaging ancient ruins (#1720)
Co-authored-by: dumichno <57294813+dumichno@users.noreply.github.com>
This commit is contained in:
@ -322,6 +322,7 @@ class UnitActions {
|
|||||||
|
|
||||||
fun canPillage(unit: MapUnit, tile: TileInfo): Boolean {
|
fun canPillage(unit: MapUnit, tile: TileInfo): Boolean {
|
||||||
if (tile.improvement == null || tile.improvement == Constants.barbarianEncampment
|
if (tile.improvement == null || tile.improvement == Constants.barbarianEncampment
|
||||||
|
|| tile.improvement == Constants.ancientRuins
|
||||||
|| tile.improvement == "City ruins") return false
|
|| tile.improvement == "City ruins") return false
|
||||||
val tileOwner = tile.getOwner()
|
val tileOwner = tile.getOwner()
|
||||||
// Can't pillage friendly tiles, just like you can't attack them - it's an 'act of war' thing
|
// Can't pillage friendly tiles, just like you can't attack them - it's an 'act of war' thing
|
||||||
|
Reference in New Issue
Block a user