The Desert Spirit is a Hardmodeenemy that can be found in Corrupted or CrimsonUnderground Desert biomes. The Desert Spirit has an attack pattern that is unique compared to most enemies. Upon appearing near a player, it will cast a single Desert Spirit's Curse, a colored projectile that attempts to home in on the nearest player, phasing through blocks and slowly gaining speed. After a certain amount of time, it will duplicate and explode. The projectiles themselves do not deal any damage, but their explosions do. Similar to other casters, the Desert Spirit will finally teleport to a different location and repeat the process.
Trivia
Desert Spirits are references to jinns (anglicized as "genies"), mythical invisible spiritual creatures commonly associated with ancient and modern Arab Islamic mythology.
The Desert Spirit's association with the Desert Spirit Lamp is a reference to the original tale of Aladdin from the Middle Eastern folktale collection One Thousand and One Nights, where the titular protagonist summons a wish-granting genie by rubbing an oil lamp, who is bound to do the bidding of whoever is in possession of it.
The Bestiary entry for the Desert Spirit: "Ancient magicks corrupted the minds of the once friendly desert djinns, releasing them full of hostility from their lamps."