No, Elves are not proof against Hypnotic Pattern, but their Fey Ancestry racial trait gives them benefit on saving throws in opposition to staying charmed, which often can enable them resist its results. The spell ends for an impacted creature if it takes any damage or if some other person https://www.youtube.com/shorts/2bqrDoavYZM