Magnet Rise only works on the user.
Generation IV The user becomes immune to Ground-type attacks for five turns. Like Flying-type Pokémon and Pokémon with Levitate, the user is immune to the damage of Spikes and Toxic Spikes, and is unaffected by Arena Trap. Magnet Rise is completely negated by Gravity, Ingrain, and holding an Iron Ball.
Magnet Rise can be transferred by Baton Pass.
Generation V onward Magnet Rise can now be stolen by Snatch. Magnet Rise is removed if the user is hit by Smack Down or Thousand Arrows. If used again, Magnet Rise fails.
If powered up by an Electrium Z into Z-Magnet Rise, the user's evasiveness is raised by one stage.