Is there a way to force my pet to stop attacking my team members?

Thanks!