When I melee attack my AI, I deal damage to myself?

I have set a melee system up that seems to work fine. However I keep damaging myself when I attack my AI. I’m not sure why, because if I attack the air I don’t hit myself, only when attacking my AI bot. (My AI doesn’t deal player damage yet).

My sword has its own collision that can be turned on an off too.