In the latest update for Clash of Clans, you now get loot carts after you get attacked. Collecting them gives you some loot back, but how much do you get back, and does it affect the amount of loot the person who attacked you got?
After getting attacked, the loot cart will randomly appear somewhere in your base, and will contain 20% of the loot you lost in the raid. This will not affect the amount of loot that the attacker gets, you simply will get some of your loot back as a sort of consolation prize. If you are attacked multiple times without you having collected your loot cart, the amount of loot you get in the loot cart will update to represent 20% of the loot you lost in the raid you lost the most loot in, but only one loot cart will appear at a time, so you should collect them whenever you can.
Note, you cannot collect a loot cart if your storages are full.