--- 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