If a man is engaged in a sexual affair. How can this affect divorce settlement if his wife filed for divorce?

Update: I live in the UK, so the question is related to the Uk Law.
9 answers 9