namespace Gen7 { [Ability effect=PreventCritical] class PreventCriticalAbility : PkmnScript { void PreventIncomingCritical(ExecutingMove@, Pokemon@, uint8, bool &inout prevent) override { prevent = true; }; } }