Refactor enemy hit method.