Fix bug with self attacking