namespace Gen7 { class ArenaTrap : PkmnScript { void PreventOpponentRunAway(FleeTurnChoice@ choice, bool &inout block){ if (block) return; if (SpecialStates::IsRaised(choice.User)) return; block = true; } void PreventOpponentSwitch(SwitchTurnChoice@ choice, bool &inout block){ if (block) return; if (SpecialStates::IsRaised(choice.User)) return; block = true; } } }