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

Turns out that I had to make it so any registered hits ignore my player character. There are many ways to do this but I eventually made one base enemy class and then used the collision of the weapon to search for that base class via a cast. If the cast is true it damages that specific class any other class and it won’t damage it