--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Wed Nov 23 14:08:43 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua Wed Apr 20 18:18:05 2016 +0200
@@ -1258,7 +1258,8 @@
elseif pMode[pIndex][2] == "mod" then
local _, oldHealth
_,_,_,_,_,_,_,_,_,_,_, oldHealth = GetGearValues(sGear)
- local newHealth = math.max(1, oldHealth + tonumber(pMode[pIndex][1]))
+ oldHealth = 36 - oldHealth
+ newHealth = math.max(1, oldHealth + tonumber(pMode[pIndex][1]))
end
if newHealth ~= nil then
SetGearValues(sGear, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, 36 - newHealth)