share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 15400 06524f2e9a74
parent 15399 4b792051c159
child 15402 1028f5606b5f
equal deleted inserted replaced
15399:4b792051c159 15400:06524f2e9a74
   523 		-- Kill all the losers
   523 		-- Kill all the losers
   524 		for i = 0, (numhhs-1) do
   524 		for i = 0, (numhhs-1) do
   525 			if GetHogClan(hhs[i]) ~= bestClan or roundDraw then
   525 			if GetHogClan(hhs[i]) ~= bestClan or roundDraw then
   526 				SetEffect(hhs[i], heResurrectable, 0)
   526 				SetEffect(hhs[i], heResurrectable, 0)
   527 				SetHealth(hhs[i],0)
   527 				SetHealth(hhs[i],0)
       
   528 			elseif not roundDraw then
       
   529 				SetEffect(hhs[i], heInvulnerable, 1)
   528 			end
   530 			end
   529 		end
   531 		end
   530 
   532 
   531 		gameOver = true
   533 		gameOver = true
   532                 for i=0, wpCount-1 do
   534                 for i=0, wpCount-1 do
   946 
   948 
   947                                 AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)),GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
   949                                 AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)),GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
   948 
   950 
   949                                 if (CheckWaypoints() == true) then
   951                                 if (CheckWaypoints() == true) then
   950                                         AdjustScores()
   952                                         AdjustScores()
       
   953                                         SetEffect(CurrentHedgehog, heInvulnerable, 1)
   951                                         DisableTumbler()
   954                                         DisableTumbler()
   952                                 end
   955                                 end
   953 
   956 
   954                         end
   957                         end
   955 
   958