I am more than an year into my quit.
Thought this might help someone going through this phase.
Sometime around month 3 or 4 into my quit, I always got tempted watching friends around me smoke. I think it was not temptation but more of a powerful trigger for me as most of my friends smoke.
So, It took about may be 3 or 4 instances of encountering this trigger to extinguish it. I think the more powerful the trigger, the more the number of times it requires you to experience and remain smoke-free to extinguish it completely.
Now, I don't even remotely desire/crave a cigarette in this situation but rather, I am disgusted to be around second hand smoke. I openly excuse myself from my friends when they are about to light up..
I would walk away to a distance where I cannot smell the cigarette.(NOT because of the fear of being tempted, but research has shown that even if you can smell a cigarette, you are inhaling toxins. It wont addict you but would have toxic particles which are dangerous.) I would wait there and play around with my phone or something, After they are finished, I go back. It makes them feel like big time Losers and they admit their helplessness to break free from the grip of the addiction.
I am so thankful that I broke free from this dangerous drug addiction.