share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 12061 5beaf30c1cef
parent 12059 e8458438dcee
child 12062 3d03e9294633
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 05:08:04 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua	Thu Nov 24 05:35:21 2016 +0100
@@ -1476,6 +1476,7 @@
 				rightOn = false
 				SetMyCircles(false)
 				rAlpha = 255
+				FailGraphics()
 				--nw WriteLnToConsole("Player is out of luck")
 
 				if shieldMiser == true then
@@ -2043,12 +2044,20 @@
 
 	playerIsFine = false
 	AddCaption(loc("GOTCHA!"))
+	FailGraphics()
 	PlaySound(sndHellish)
 
 	targetHit = true
 
 end
 
+-- Turn all circles white to indicate they can't be hit anymore
+function FailGraphics()
+	for i = 0,(vCCount-1) do
+		vCircCol[i] = 0xffffffff
+	end
+end
+
 --- collision detection for weapons fire
 function CheckVarious(gear)