Like Drea said, look at the lessons she's teaching the girls. "If life gets tough, bail on your husband and jump in bed with someone new".
They are not stupid.
It may be that I am too much of an optimist, but I believe your daughters will learn NOT to repeat what their mother has done. The future for your W (or STBXW) sure does not look good and I am sure that the consequences for her poor choices will be obvious to your daughters.
I read that daughters are attracted to men similar to their father. Is D17.9999's boyfriend similar to you?