"...but when the situation was resolved I had a powerful urge to have a smoke!"

Check out the video "I'm not joining this clinic"  
The very end of that video discusses the phenomena of getting that powerful urge after overcoming situations that you thought would be problematic..