share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 13623 f66d8779e4dd
parent 13620 211a37eb6a29
child 13643 690cc84e9fd6
--- a/share/hedgewars/Data/Scripts/TargetPractice.lua	Tue Aug 07 01:47:49 2018 +0200
+++ b/share/hedgewars/Data/Scripts/TargetPractice.lua	Tue Aug 07 01:52:40 2018 +0200
@@ -139,7 +139,13 @@
 	_G.onGameInit = function()
 		Seed = 1
 		ClearGameFlags()
-		EnableGameFlags(gfDisableWind, gfMultiWeapon, gfOneClanMode, solid, artillery)
+		local attackMode
+		if (params.ammoType == amBee) then
+			attackMode = gfInfAttack
+		else
+			attackMode = gfMultiWeapon
+		end
+		EnableGameFlags(gfDisableWind, attackMode, gfOneClanMode, solid, artillery)
 		TurnTime = params.time
 		Map = params.map
 		Theme = params.theme