Killing The Specialists: Fix health boost division
authorWuzzy <Wuzzy2@mail.ru>
Fri, 09 Feb 2018 10:48:24 +0100
changeset 12941 b9904380ce26
parent 12940 ff42888333bc
child 12942 a84a05719454
Killing The Specialists: Fix health boost division
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua
--- 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