share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 7838 5c2337f8dbb2
parent 7717 2684fdb9d874
child 8043 da083f8d95e6
equal deleted inserted replaced
7837:3e031b3b33e6 7838:5c2337f8dbb2
   617 			end
   617 			end
   618 		end
   618 		end
   619 
   619 
   620 		for i = 0, (numhhs-1) do
   620 		for i = 0, (numhhs-1) do
   621 			if GetHogClan(hhs[i]) ~= bestClan then
   621 			if GetHogClan(hhs[i]) ~= bestClan then
   622 				SetEffect(hhs[i], heResurrectable, false)
   622 				SetEffect(hhs[i], heResurrectable, 0)
   623 				SetHealth(hhs[i],0)
   623 				SetHealth(hhs[i],0)
   624 			end
   624 			end
   625 		end
   625 		end
   626 		gameOver = true
   626 		gameOver = true
   627 		TurnTimeLeft = 0	--1
   627 		TurnTimeLeft = 0	--1
  1446 	--if GetGearType(gear) == gtBall then
  1446 	--if GetGearType(gear) == gtBall then
  1447 	--	SetTimer(gear, 5000)
  1447 	--	SetTimer(gear, 5000)
  1448 	--end
  1448 	--end
  1449 
  1449 
  1450 	if GetGearType(gear) == gtHedgehog then
  1450 	if GetGearType(gear) == gtHedgehog then
  1451 		SetEffect(gear, heResurrectable, true)
  1451 		SetEffect(gear, heResurrectable, 1)
  1452 
  1452 
  1453 		-----------
  1453 		-----------
  1454 		-- control
  1454 		-- control
  1455 		hhs[numhhs] = gear
  1455 		hhs[numhhs] = gear
  1456 		numhhs = numhhs + 1
  1456 		numhhs = numhhs + 1