>>12034371From bulbapedia:
Run Away guarantees escape from a wild Pokémon, negating any trapping move or Ability an opponent has in effect, such as Mean Look and its variations, Wrap and its variations, Shadow Tag, and Arena Trap. However, Run Away does not allow a Pokémon to switch out when a trapping move or Ability is in effect, even in a wild Pokémon battle. Run Away has no effect in Trainer battles. When activated, the message "<Pokémon name> escaped using Run Away!" will appear.
>However, Run Away does not allow a Pokémon to switch out when a trapping move or Ability is in effect, even in a wild Pokémon battle. Run Away has no effect in Trainer battles.This is what needs to change.