Wait, I'm confused now.

If the hero has defender and Anklebreaker, and an ally attacks, does the ally deal damage?
Similarly, if the hero has defender and Dagger of Unmaking, would the ally deal damage before returning to hand?

I would find either of these outcomes very unintuitive. Could someone confirm what happens here?