--- 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
--- 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