share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
changeset 13165 89a6b862e692
parent 13076 65a3b4bea459
child 13184 3966ef529313
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Sun Mar 11 12:08:49 2018 +0100
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Sun Mar 11 21:38:08 2018 +0100
@@ -199,19 +199,6 @@
 	end
 end
 
-function onSetWeapon(ammoType)
-	if ammoType == amBazooka and not weaponSelected and gamePhase == 1 then
-		newGamePhase()
-		weaponSelected = true
-	end
-end
-function onSlot(msgParam)
-	if msgParam == 0 and not weaponSelected and gamePhase == 1 then
-		newGamePhase()
-		weaponSelected = true
-	end
-end
-
 function onHogAttack(ammoType)
 	if ammoType == amBazooka then
 		HideMission()
@@ -278,6 +265,11 @@
 		PlaySound(sndMissed, hog)
 		missedTauntTimer = -1
 	end
+
+	if not weaponSelected and gamePhase == 1 and GetCurAmmoType() == amBazooka then
+		newGamePhase()
+		weaponSelected = true
+	end
 end
 
 function onAmmoStoreInit()