Do smoking and drinking affect this condition?

Yes. In fairness to you, i really can't answer this question adequately without knowing which "condition" you are referring to. Nevertheless, there is not a single medical condition that i can think of that wouldn't be made worse by smoking and drinking.
Which condition? You forgot to include a condition that smoking or drinking may effect.