You invade the mind of a creature you can see within range, causing psychic turmoil and confusion. The target must make a Wisdom saving throw. On a failed save, the target takes 4d4 psychic damage at the start of each of its turns and has disadvantage on Wisdom, Intelligence, and Charisma checks for the duration of the spell.
While the target is affected, you become invisible and intangible, able to move freely within the target’s mind. You are immune to all damage and conditions while inside their mind, but you cannot take any actions other than remaining within the target’s mind or using a bonus action to attempt to leave.
You may use your bonus action on your turn to exit the target’s mind, ending the spell and returning to the nearest unoccupied 5-foot square outside the target’s mind, or within 30 feet of the target if no unoccupied space is nearby.
The spell ends early if the target succeeds on a saving throw at the end of its turn or if the target is affected by Dispel Magic or similar magic that can end enchantments or psychic intrusions.