You make it sound like there was a fan blowing cigarette smoke through a duct directly into your apartment. If that was the case, I'm glad you moved. Germs are much more dangerous than second hand smoke.
How did this happen ? Did it have an HVAC system like a hospital ?
What.... you never in your life walked into a smoke-filled area?