fixes attacking enemies