Wu Ding did not awaken the demonic tendencies within himself without reason; instead, it was Han Qing'er's "contribution" at work. Fa Ying gave Han Qing'er a "Yin-Yang Stone." This type of Yin-Yang Stone doesn't affect ordinary cultivators, but it can influence Wu Ding, who cultivates Yang energy, and Elder Wu, who cultivates Yin energy.
The Yin-Yang Stone is a secret weapon developed by the Huangji Sect, specifically targeting the cultivation methods of the Tianxuan Sect.