I tested it, and I'm thinking, with my limited knowledge of Lua, that you might have accidentally made the bubbles harm the player (especially the one that fires/creates it), instead of enemies.
I do think there are some badniks in the vanilla game that can harm other badniks, I've seen it before, I wonder if that could somehow help?