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