Beispiel #1
0
        /// <summary>
        /// Invokes after attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static AfterAttackArgs FireAfterAttack(Orbwalker instance, AttackableUnit target)
        {
            if (instance != null)
                instance.ForcedTarget = null;

            AfterAttackArgs args = new AfterAttackArgs();
            args.Instance = instance;
            args.Target = target;

            if (AfterAttack != null)
                AfterAttack(args);

            if (args.ResetAATimer)
                instance.ResetAATimer();

            return args;
        }
Beispiel #2
0
        /// <summary>
        /// Invokes after attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static AfterAttackArgs FireAfterAttack(Orbwalker instance, AttackableUnit target)
        {
            if (instance != null)
            {
                instance.ForcedTarget = null;
            }

            AfterAttackArgs args = new AfterAttackArgs();

            args.Instance = instance;
            args.Target   = target;

            if (AfterAttack != null)
            {
                AfterAttack(args);
            }

            if (args.ResetAATimer)
            {
                instance.ResetAATimer();
            }

            return(args);
        }
Beispiel #3
0
        /// <summary>
        /// Invokes after attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static AfterAttackArgs FireAfterAttack(Orbwalker instance, AttackableUnit target)
        {
            AfterAttackArgs args = new AfterAttackArgs();

            args.Instance = instance;
            args.Target   = target;

            if (instance.ActiveMode == Orbwalker.Mode.None)
            {
                return(args);
            }

            if (AfterAttack != null)
            {
                AfterAttack(args);
            }

            if (args.ResetAATimer)
            {
                instance.ResetAATimer();
            }

            return(args);
        }
Beispiel #4
0
        /// <summary>
        /// Invokes after attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static AfterAttackArgs FireAfterAttack(Orbwalker instance, AttackableUnit target)
        {
            AfterAttackArgs args = new AfterAttackArgs();
            args.Instance = instance;
            args.Target = target;

            if (instance.ActiveMode == Orbwalker.Mode.None)
                return args;

            if (AfterAttack != null)
                AfterAttack(args);

            if (args.ResetAATimer)
                instance.ResetAATimer();

            return args;
        }