'Shoots fireball, allowing no more than two to exist at once'

def shoot_fireball(self, powerup_group):

    setup.SFX['fireball'].play()
    self.fireball_count = self.count_number_of_fireballs(powerup_group)
    if ((self.current_time - self.last_fireball_time) > 200):
        if (self.fireball_count < 2):
            self.allow_fireball = False
            powerup_group.add(powerups.FireBall(self.rect.right, self.rect.y, self.facing_right))
            self.last_fireball_time = self.current_time
            self.frame_index = 6
            if self.facing_right:
                self.image = self.right_frames[self.frame_index]
            else:
                self.image = self.left_frames[self.frame_index]
