share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 12945 39b7b3ed619e
parent 12906 bdf8e80a97b8
child 13364 7d772358dc22
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri Feb 09 12:52:05 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri Feb 09 14:33:00 2018 +0100
@@ -707,7 +707,7 @@
 	then
 		if(gearIsInCircle(GLOBAL_TEMP_VALUE,GetX(hog), GetY(hog), 100, false))
 		then
-			SetHealth(hog, GetHealth(hog)+25+(div(25*GLOBAL_VAMPIRIC_IS_ON,100)))
+			HealHog(hog, 25 + (div(25*GLOBAL_VAMPIRIC_IS_ON,100)), hog == CurrentHedgehog)
 			SetEffect(hog, hePoisoned, false)
 			GLOBAL_SABOTAGE_HOGS[hog]=0
 		end
@@ -1259,7 +1259,7 @@
 		then
 			GLOBAL_TEMP_VALUE=0
 			runOnGears(KerguelenSpecialRed)
-			SetHealth(CurrentHedgehog, GetHealth(CurrentHedgehog)+GLOBAL_TEMP_VALUE)
+			HealHog(CurrentHedgehog, GLOBAL_TEMP_VALUE)
 			PlaySound(sndHellish)
 
 		--swap