The defaulting debitor II

Facts: A promises B EUR 5,000 so that B will beat up a defaulting debtor of A. When B has beaten the debtor to hospital as agreed, B wants ’his money’ from A.

Question: Is B’s claim justified?