The Dream Spirit Pearl could indeed attract those evil thoughts!
As long as there was a strong emotional fluctuation, even inanimate objects like artifacts or pure energy could attract those evil thoughts.
Jiang Li recalled the Village Viewing Platform. This Netherworld building relied on the thoughts of the dead and the living to connect Yin and Yang and see everything in the Nine Provinces.
Those evil thoughts were half corporeal and half illusory to begin with. They were existences without substance and were between soul fragments and emotional energy.
It was precisely because he was attracted by the intense longing that he followed the bridge of longing to the Village Viewing Platform and crossed over as a passageway.
To be able to use this method to guide the evil thoughts, although it was still unable to quickly eliminate them, it at least gave the continent of the Nine Provinces a chance of survival.