well when I made then they just did that cus they just move faster than the player so esenshaly every enemie does that but not every enemie has a chance to do it and it feals like a bug cus half it is but it apeared when I fixed a bug that made them attack many times in 1 turn so ye they try to attack but they cant so they move back thats how they work