Aha! Thanks for pointing that out. I think I should have at least put a cooldown timer on the attack so that it can't be spammed but in testing I never ended up playing it this way. What I might do when I tidy it up is change the format of how enemies appear, so instead of scrolling onto the screen they will just materialise in front of the player.