mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fixed bug where denmark's pillaging unique doesn't work (#5500)
This commit is contained in:
parent
ac422d25cb
commit
5c80e8ee9b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user