# HG changeset patch # User Wuzzy # Date 1569549138 -7200 # Node ID c95efbab66e6122e737bd7b34866eef70ecea0d2 # Parent b704b0c11129d9d3b71f5e377121daab593197be Battalion Highland: Fix incorrect health bonus (bug 788) diff -r b704b0c11129 -r c95efbab66e6 share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua Fri Sep 27 01:29:32 2019 +0200 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Battalion.lua Fri Sep 27 03:52:18 2019 +0200 @@ -752,6 +752,7 @@ hogInfo[hog]['variant'] = hogVar SetHealth(hog, variants[hogVar]["hp"]) + hogInfo[hog]['maxHp'] = variants[hogVar]["hp"] end function getHogInfo(hog, info) @@ -1150,8 +1151,7 @@ end hpDiff = div(deathMaxHP * highEnemyKillHPBonus, 100) - newHP = curHP + hpDiff - HealHog(CurHog, newHP) + HealHog(CurHog, hpDiff) -- Friendly fire! Punish hog by removing weapons and helpers from pool -- and reduce health else