I sent out my Arena Trap Dugtrio and the Dragapult switched out! Why didn't arena trap block it from switching out? Replay: https://replay.pokemonshowdown.com/gen8ubers-1199351154-650ooa95evp88ewil1bi5e6iix4jecbpw
In battle Arena Trap prevents all grounded adjacent opponents from fleeing (including Teleport) or switching out as long as the user remains in battle. However, if a Pokémon with Arena Trap switches in, opponents that decided to switch out at the beginning of that turn but have not yet moved will still switch out. Using Baton Pass, U-turn, Volt Switch, Flip Turn, or Parting Shot will still cause the Pokémon to switch out. Holding a Shed Shell allows the Pokémon to switch out, but not flee or Teleport. Having the Ability Run Away or holding a Smoke Ball allows the Pokémon to flee or Teleport, but not switch. If a wild Pokémon has Arena Trap and the player's Pokémon faints, if the player attempts to flee instead of sending out another Pokémon, they are unaffected by Arena Trap. Arena Trap does not affect allies. Generation VI Ghost-type Pokémon who are normally not grounded are now immune to Arena Trap.
In battle Arena Trap prevents all grounded adjacent opponents from fleeing (including Teleport) or switching out as long as the user remains in battle. However, if a Pokémon with Arena Trap switches in, opponents that decided to switch out at the beginning of that turn but have not yet moved will still switch out.
Using Baton Pass, U-turn, Volt Switch, Flip Turn, or Parting Shot will still cause the Pokémon to switch out. Holding a Shed Shell allows the Pokémon to switch out, but not flee or Teleport. Having the Ability Run Away or holding a Smoke Ball allows the Pokémon to flee or Teleport, but not switch.
If a wild Pokémon has Arena Trap and the player's Pokémon faints, if the player attempts to flee instead of sending out another Pokémon, they are unaffected by Arena Trap.
Arena Trap does not affect allies.
Generation VI Ghost-type Pokémon who are normally not grounded are now immune to Arena Trap.
Source
Dragapult is a Ghost type, so it's immune to Arena Trap.
Hope this helps! :)
Arena Trap fails on levitating, flying Pokemon, a Pokemon with Shed Shell and ghost types.
source: https://bulbapedia.bulbagarden.net/wiki/Arena_Trap_(Ability)
Hope this helps :)