From 5c80e8ee9b737df3b3d444747a4873ae1939057b Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Sun, 17 Oct 2021 07:39:44 +0200 Subject: [PATCH] Fixed bug where denmark's pillaging unique doesn't work (#5500) --- core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt index ad05859949..6392b9cce1 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt @@ -282,8 +282,9 @@ object UnitActions { tile.improvement = null if (tile.resource != null) tile.getOwner()?.updateDetailedCivResources() // this might take away a resource - val freePillage = unit.hasUnique("No movement cost to pillage") || unit.civInfo.hasUnique("No movement cost to pillage") - (unit.baseUnit.isMelee() && unit.civInfo.hasUnique("Melee units pay no movement cost to pillage")) + val freePillage = unit.hasUnique("No movement cost to pillage") + || unit.civInfo.hasUnique("No movement cost to pillage") + || (unit.baseUnit.isMelee() && unit.civInfo.hasUnique("Melee units pay no movement cost to pillage")) if (!freePillage) unit.useMovementPoints(1f) unit.healBy(25)