Esempio n. 1
0
        public static Obj_AI_Hero GetTarget(bool aaTarget = false)
        {
            var mode = Menu.Item("TargetSelector").GetValue <StringList>().SelectedIndex;

            if (aaTarget)
            {
                if (UltTarget.Target.IsValidTarget(1000))
                {
                    return(UltTarget.Target);
                }

                return(mode.Equals(0)
                    ? TargetSelector.GetTarget(FioraAutoAttackRange, TargetSelector.DamageType.Physical)
                    : LockedTargetSelector.GetTarget(FioraAutoAttackRange, TargetSelector.DamageType.Physical));
            }

            if (UltTarget.Target.IsValidTarget(Q.Range))
            {
                return(UltTarget.Target);
            }

            return(mode.Equals(0)
                ? TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical)
                : LockedTargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical));
        }
Esempio n. 2
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Player.IsDashing() || Player.IsWindingUp || Player.Spellbook.IsCastingSpell)
            {
                return;
            }

            var target = LockedTargetSelector.GetTarget(SpellManager.E.Range, TargetSelector.DamageType.Physical);

            if (target == null || !target.IsValidTarget(SpellManager.E.Range))
            {
                return;
            }

            if (!Orbwalker.ActiveMode.IsComboMode())
            {
                return;
            }

            var q = SpellManager.Q.IsReady() && SpellManager.Q.IsActive() && SpellManager.Q.IsInRange(target);
            var e = SpellManager.E.IsReady() && SpellManager.E.IsActive();
            var r = SpellManager.R.IsReady() && SpellManager.R.IsActive() && SpellManager.R.IsInRange(target);

            if (e && SpellManager.E.Cast(target).IsCasted())
            {
                return;
            }

            if (q && SpellManager.Q.Cast(target).IsCasted())
            {
                return;
            }

            if (r && SpellManager.R.Cast())
            {
            }
        }
Esempio n. 3
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            Orbwalker.SetOrbwalkingPoint(Vector3.Zero);

            if (Player.IsDead || Flee())
            {
                return;
            }

            KillstealQ();
            KillstealW();
            DuelistMode();
            Farm();

            if (Player.IsDashing() || Player.IsWindingUp) // || Player.Spellbook.IsCastingSpell)
            {
                return;
            }

            if (!Orbwalker.ActiveMode.IsComboMode())
            {
                return;
            }

            var aaTarget = UltTarget.Target != null && UltTarget.Target.IsValidTarget(1000)
                ? UltTarget.Target
                : LockedTargetSelector.GetTarget(FioraAutoAttackRange, TargetSelector.DamageType.Physical);

            if (aaTarget != null)
            {
                Orbwalker.ForceTarget(aaTarget);

                if (Menu.Item("OrbwalkPassive").IsActive() &&
                    Menu.Item("Orbwalk" + Orbwalker.ActiveMode.GetModeString()).IsActive())
                {
                    OrbwalkToPassive(aaTarget);
                }
            }

            var target = UltTarget.Target != null && UltTarget.Target.IsValidTarget(Q.Range)
                ? UltTarget.Target
                : LockedTargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);

            //TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);

            if (target == null || !target.IsValidTarget(W.Range))
            {
                return;
            }


            if (Orbwalker.ActiveMode.Equals(Orbwalking.OrbwalkingMode.Mixed) &&
                Player.ManaPercent < Menu.Item("ManaHarass").GetValue <Slider>().Value)
            {
                return;
            }

            if (R.IsActive() && Menu.Item("RMode").GetValue <StringList>().SelectedIndex.Equals(1) && ComboR(target))
            {
                return;
            }

            if (Q.IsActive())
            {
                if (target.IsValidTarget(FioraAutoAttackRange) && !Orbwalking.IsAutoAttack(Player.LastCastedSpellName()))
                {
                    return;
                }

                CastQ(target);

                /*  var path = target.GetWaypoints();
                 * if (path.Count == 1 || Player.Distance(target) < 700)
                 * {
                 *  CastQ(target);
                 *  return;
                 * }
                 *
                 * var d = target.Distance(path[1]);
                 * var d2 = Player.Distance(path[1]);
                 * var t = d / target.MoveSpeed;
                 * var dT = Q.Delay + Game.Ping / 2000f - t;
                 * if ((dT > .2f || (d2 < 690 && dT > -1)) && CastQ(target))
                 * {
                 *  //  Console.WriteLine("{0} {1}", dT, d2);
                 * }*/
            }
        }