changeset 12936 | b9904380ce26 |
parent 12935 | ff42888333bc |
child 12940 | 39b7b3ed619e |
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua Fri Feb 09 10:47:21 2018 +0100 +++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua Fri Feb 09 10:48:24 2018 +0100 @@ -164,7 +164,7 @@ function onGearDamage(gear, damage) if isHog(gear) and GetHealth(hero.gear) then - local bonusHealth = damage/3 + local bonusHealth = div(damage, 3) SetHealth(hero.gear, GetHealth(hero.gear) + bonusHealth) healthBoostAnim(hero.gear, bonusHealth, 0xFF0000FF) end