Magic Jar, Greater (3.5e Spell)
From D&D Wiki
|Casting time:||10 minutes|
|Range:||Medium (100 ft. + 10 ft./level)|
|Target:||One living creature|
|Saving Throw:||Will negates|
Upon casting Greater Magic Jar, you immediately initiate a spiritual transposition between yourself and one target within range. If the target fails their Will save, their spirit is torn from their body and instantly replaced with your own. Meanwhile, their spirit is thrust into your former body. The transfer is instantaneous and cannot be reversed or undone, either by dispelling or disjunction. For all intents and purposes, the usurped body is your natural one and is treated as such.
Inside of your new body, you retain your Intelligence, Wisdom, Charisma, level, class abilities, skills, feats, base attack bonus, alignment, and mental abilities. The body retains its Strength, Dexterity, Constitution, hit points, natural abilities, automatic abilities, extraordinary and supernatural abilities, and spell-like abilities. You do not gain any of the body's memories or spellcasting abilities. Likewise, your opponent receives all of these gains and drawbacks when he enters your former body.
Once the spell is complete and both you and your victim have switched bodies, both of you fall unconscious for 10d12 minutes and cannot be awakened by any means. Upon waking up, you are fully familiarized with your body and have no trouble employing all of its natural abilities and powers. You retain all your feats, but you temporarily lose access to those that demand specific racial or body requirements that your new form does not have.
This effect is permanent and cannot be undone by any means, even with a wish or miracle spell. However, the subject could potentially use one of these spells to regain their original form. They could not, however, use it to swap back to their original body. The only way to do that is for the original caster to cast this spell on the subject a second time.