Beispiel #1
0
        /// <summary>
        ///     The move fake click after attacking
        /// </summary>
        /// <param name="unit">
        ///     The unit.
        /// </param>
        /// <param name="target">
        ///     The target.
        /// </param>
        private static void AfterAttack(AttackableUnit target, EventArgs args)
        {
            attacking = false;
            var t = target as AIHeroClient;

            if (t != null)
            {
                var pos = RandomizePosition(t.Position);
                if (MoveCursor)
                {
                    MouseManager.StartPathWorld(pos);
                }
                ShowClick(pos, ClickType.Move);
            }
        }
        /// <summary>
        ///     The move fake click after attacking
        /// </summary>
        /// <param name="unit">
        ///     The unit.
        /// </param>
        /// <param name="target">
        ///     The target.
        /// </param>
        private static void AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            attacking = false;
            var t = target as Obj_AI_Hero;

            if (t != null && unit.IsMe)
            {
                var pos = RandomizePosition(t.Position);
                if (MoveCursor)
                {
                    MouseManager.StartPathWorld(pos);
                }
                ShowClick(pos, ClickType.Move);
            }
        }
Beispiel #3
0
        /// <summary>
        ///     The fake click before you cast a spell
        /// </summary>
        /// <param name="s">
        ///     The Spell Book.
        /// </param>
        /// <param name="args">
        ///     The args.
        /// </param>
        private static void BeforeSpellCast(Spellbook s, SpellbookCastSpellEventArgs args)
        {
            var target = args.Target;

            if (target == null)
            {
                return;
            }

            if (target.Position.LSDistance(player.Position) >= 5f)
            {
                if (MoveCursor)
                {
                    MouseManager.StartPathWorld(args.Target.Position);
                }
                ShowClick(args.Target.Position, ClickType.Attack);
            }
        }