share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 15390 c35c5a9b878c
parent 15250 395563ffc8b5
child 15401 1c71406fc281
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Aug 29 21:25:23 2019 +0300
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Fri Aug 30 14:15:34 2019 +0300
@@ -680,7 +680,7 @@
 ----------------------------------
 
 function onGameInit()
-        EnableGameFlags(gfInfAttack, gfInvulnerable)
+        EnableGameFlags(gfInfAttack)
         CaseFreq = 0
         TurnTime = 90000
         WaterRise = 0
@@ -956,7 +956,10 @@
                                 trackTime = 0
 
                                 SetGearPosition(CurrentHedgehog, wpX[0], wpY[0])
-                                AddGear(GetX(CurrentHedgehog)+boostX, GetY(CurrentHedgehog)+boostY, gtGrenade, 0, 0, 0, 1)
+                                Explode(GetX(CurrentHedgehog)+boostX,
+                                        GetY(CurrentHedgehog)+boostY,
+                                        50,
+                                        EXPLNoDamage + EXPLAutoSound)
                                 FollowGear(CurrentHedgehog)
 
                                 HideMission()