Some problems about attacking in my action rpg game

My game

I have my character attacking 1 enemy at a time even why my slash is surely overlaying with 2 enemies. I know there is a problem about “For element value of array x” but dont know how to do it else. Have made a character called slash which is the blade animation. If value of array of enemies touch the slash they get damaged. It is an rpg game so there are a lot of numbers, but i put comments there to guide you
Btw the game will still be balanced even without that mechanic, so its not crucial, i think (still havent planned out the full game), but still its not ideal to not fix.

Would you mind sharing a link to the game? There could potentially be a few different ways to solve this issue.