Пример #1
0
        private static bool CancelTarget(string command, Argument[] args, bool quiet, bool force)
        {
            if (args.Length != 0)
            {
                throw new RunTimeError(null, "Usage: canceltarget");
            }

            if (Targeting.HasTarget)
            {
                Targeting.CancelOneTimeTarget();
            }

            return(true);
        }