I have a player hurt entity command, how would I run a command at the hurt entity?

I have it so when I attack an entity, it spawns a particle, but how would I spawn the particle at the entity and not the player

Continue to help post