namespace Gen7 { [Pokemon effect=Flinch] class FlinchEffect : PkmnScript{ void PreventAttack(ExecutingMove@ attack, bool& result) override { result = true; attack.User.RemoveVolatile("flinch"); } } }