share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 13508 c5d7376fa58a
parent 13502 65c348d6c1fa
child 13588 141cdfe0f3ca
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Tue Jul 17 21:31:41 2018 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Tue Jul 17 22:00:15 2018 +0200
@@ -221,6 +221,12 @@
 	end
 end
 
+function onAttack()
+	if GetCurAmmoType() == amBazooka then
+		HideMission()
+	end
+end
+
 function onGearAdd(gear)
 	if GetGearType(gear) == gtTarget then
 		targetsLeft = targetsLeft + 1