Haha, thank you! It's simpler than it looks, since I didn't had much time to work on it (of course, this is Trijam) so it just thros the attack at the player's target position (So if the player is "idle" it'll shoot the laser at the player's place, if the player is moving, it'll shoot at where the player is moving to).
If there's an attack already at the positon, then I select a random adjacent one, and if there's none then it just does nothing.
That's pretty much how it choses the target!