namespace PkmnLib.Plugin.Gen7.Scripts.Abilities; /// /// Queenly Majesty is an ability that prevents priority moves from being used against the Pokémon. /// /// Bulbapedia - Queenly Majesty /// [Script(ScriptCategory.Ability, "queenly_majesty")] public class QueenlyMajesty : Script { /// public override void FailIncomingMove(IExecutingMove move, IPokemon target, ref bool fail) { if (move.Targets.Count != 1) return; if (move.MoveChoice.Priority > 0) { fail = true; } } }