diff --git a/js/powerups.js b/js/powerups.js index 4ce6f0a..94e00eb 100644 --- a/js/powerups.js +++ b/js/powerups.js @@ -38,7 +38,7 @@ function update_powerup(){ } }); - if(game.time.now > player.rapidTime){ + if(game.time.now > player.rapidTime && player.alive){ rapid_fire(); }