Zhang Bao, Zhang Jiao, is a real person. For the sake of the uprising, the ancients will definitely contact with the gods, so that others will believe you. For example, Liu Bang beheaded the white snake in order to deify himself. So is Zhang Bao's witchcraft. You wouldn't believe me if I said I knew witchcraft. Hehe, that Zhang Bao's witchcraft can only be said to be created by the author. I don't know if you have seen it.
In ancient China, Taoist magic did exist ... but there was no way to study it.