Ground-type moves do not work on the Pokémon. Instead, they restore 1/4 of its max HP.
If hit by a Ground-type move, the Pokémon has its HP restored instead of taking damage.