Skip to content

Commit

Permalink
Rapid Fire stops if player dies
Browse files Browse the repository at this point in the history
  • Loading branch information
metalx1000 committed Jun 27, 2015
1 parent 864ec20 commit 5a8292e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/powerups.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ function wingman_shoot(wingman){
function rapid_fire(){
var i = 0;
var timer = setInterval(function(){
if(!player.alive){
i=100;
}

shoot(player,-5,"player-bullet");
i++;
if(i >= 100){
Expand Down

0 comments on commit 5a8292e

Please sign in to comment.