Terrains effect: all Pokémon that are grounded. These are all non-flying types or flying types that are holding an iron ball, are under effect of Ingrain, Smack Down, Gravity or Thousand Arrows.
Terrains don't effect: all flying types, Pokémon with the ability Levitate, holder of Air Balloon...