This is an absolute and total rip-off of an old Wild Wild West episode called "Night of the Druid's Blood" which has Don Rickles playing the part of the mysterious magician.  Anne Elder plays the part of the femme fatale.  
I assume because CBS owned both series, RMT escaped plagiarism and copyright infringement charges.  Or maybe nobody cared or noticed.  If you like this episode, check out the WWW version and see what you think.  I've never seen anything copied so blatantly in 53 years of life.