Continental supplies: Bouncy boomerang does not spawn crate when drowning
authorWuzzy <Wuzzy2@mail.ru>
Thu, 03 May 2018 16:46:36 +0200
changeset 13369 f609c5cd8286
parent 13368 544867ac1017
child 13370 4112abbf76df
Continental supplies: Bouncy boomerang does not spawn crate when drowning
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu May 03 16:16:15 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu May 03 16:46:36 2018 +0200
@@ -2144,7 +2144,9 @@
 	--australian special
 	elseif(GetGearType(gearUid)==gtBall and GetGearMessage(gearUid)==3)
 	then
-		SpawnRandomCrate(GetX(gearUid), GetY(gearUid))
+		if band(GetState(gearUid), gstDrowning) == 0 then
+			SpawnRandomCrate(GetX(gearUid), GetY(gearUid))
+		end
 
 	--asia (using para)
 	elseif(GetGearType(gearUid)==gtParachute)