Open hackedpassword opened 10 months ago
core/src/com/unciv/logic/battle/MapUnitCombatant.kt#L28 if (unit.health > 100) unit.health = 100 // For cheating modders, e.g. negative tile damage
LOL
The commit that patched infinite negative damage: https://github.com/yairm210/Unciv/commit/75c4be39a2eb82a4ec6f064f2656dabf24357e8b
Result here would be a feature request to display a proper notification of health recovery.
Using negative values for providing recovery HP instead of damage could be simply addressed by changing the notification: "Swordsman has recovered 10 HP"
No extra uniques needed.