but , of course , gandalf had made a special study of bewitchments with fire and lights ( even the hobbit had never forgotten the magic fireworks at old took 's midsummer-eve parties , as you remember ) .