Unmoored Ego (5e Spell)
From D&D Wiki
|5th-level Divination (ritual)|
|Casting time:||1 action|
|Components:||S, M (a totem or trinket of personal significance)|
|Duration:||Concentration, up to 20 minutes|
Choose a creature or character that you have seen, that is currently within 90 feet of you. You are Incapacitated for the duration of this ritual. You release your mind into an astral form and enter theirs, choose one spell that they can cast.
If they are not an ally, they must roll a Wisdom Save; on a success this ritual ends and you take 1d4 psychic damage; otherwise, you temporarily gain that spell and a spell slot of its level until you cast it, and it is nonetheless a class spell for you. They cannot cast that spell until after you cast it; the spell and its temporary spell slot are released 20 minutes after the ritual. The creature or character whose spell was taken gains 1d8 temporary hit points per Spell Level (ex. 2nd Level spell equals 2d8, etc.) for the next 20 minutes, or until they are removed.
If they cannot cast any spells, they must roll a Wisdom Save. On a failed save, the target takes 5d8 psychic damage. On a success, they take half damage.