Polymorph Other, Tome (3.5e Spell)

"The witch snarled at the trespasser and pointed her wand vindictively at him. A short incantation later left nothing but a pig in his place."

Your target vanishes and a creature of your choice appears in its place. The creature shares the alignment, personality and goals of the target, and will continue to act as it would within the limits of its intelligence and abilities. The creature must be at least 5 CR less than your character level, may not have the incorporeal or swarm subtype, and is unexceptional for its type. If the creature is killed, the spell is ended. When the spell ends, the creature vanishes and the target appears where the creature was with an amount of lethal, nonlethal, and ability damage on it equal to the amount the creature had suffered when the spell ended (this means that if the spell ended because the creature was slain and the creature had an equal or greater number of hit points as the original target, it may well be dead when it appears).