When someone attacks you and isn't successful, the possible bonus loot they could get should go to the defender. That way in each battle the victor gets the spoils.
Good idea. I'm tired of winning attacks but getting a lot of loot stolen. I'm farming, but people go for my collectors. It would be nice to get a little bit of loot back. I mean, getting a lot of loot stolen but winning is even worse than losing a one-star defense snipe.