Upvote:3
Will this new cash deposit affect the new application? Yes.
Will the new application be denied? No one knows.
Your previous application was denied because your bank statement included unexplained cash deposits. A new application with the same flaw is not a recipe for success; given your recent refusal for this same conduct, your justification now may not be sufficient to convince the visa examiner of your bona fides.
You will increase your chances of success by having and showing a bank statement of 6 months with no oddities. Wait six months so your account has no non-salary deposits, then reapply.
Because non-salary deposits imperil your application, make sure your friend doesn't do this again.