killing enemy issue

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By abdolilah

my issue is when i try to kiil one enemy all enemys die ;

when enter attack is true is when they enter an erea2d called attack ;and it is so close from the player it is as far as its weapon .
what hapend is wen i attack a random enemey it get into attack area2d and it call signal _on_attack_body_shape_entered then when i pres the attack botton it call the signal _on_player_hit then it reduces health until it hit 0 then an if methud call queue_free() .
i think if i hit a player the health reduces on all enemy code and thats why they all die .
what i want from you is how can i attack spesifec enemy and only he die

the project :

https://drive.google.com/open?id=1Og_M7c6-DKPfKJ36awsa_6ohmD4_6Xr4