예제 #1
0
        /// <summary>
        /// Before Attack (Fires before an Orbwalker attack)
        /// Check if before target is not mini
        /// </summary>
        /// <param name="args"></param>
        internal static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            if (KN.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                Obj_AI_Minion mob = null;

                if (MinionList.Any(x => args.Target.Name.StartsWith(x) && !args.Target.Name.Contains("Mini")))
                {
                    mob = (Obj_AI_Minion)args.Target;
                }

                if (args.Target.Name.Contains("Mini") && mob.IsValidTarget(450))
                {
                    args.Process = false;
                }
            }
        }
예제 #2
0
        private static void JungleClear()
        {
            foreach (var minion in
                     ObjectManager.Get <Obj_AI_Minion>()
                     .Where(
                         m =>
                         MinionList.Any(x => m.Name.StartsWith(x)) && !m.Name.StartsWith("Minion") &&
                         !m.Name.Contains("Mini")))
            {
                Orb(minion, "Combo");
                if (_cancleave && _q.IsReady() && minion.Distance(Me.ServerPosition) <= _q.Range)
                {
                    if (_config.Item("usejungleq").GetValue <bool>())
                    {
                        _q.Cast(minion.ServerPosition);
                    }
                }

                if (_cankiburst && _w.IsReady() && minion.Distance(Me.ServerPosition) <= _w.Range)
                {
                    if (_config.Item("usejunglew").GetValue <bool>())
                    {
                        _w.Cast();
                    }
                }

                if (_e.IsReady() && _candash)
                {
                    if (minion.Distance(Me.ServerPosition) <= _e.Range + _q.Range ||
                        Me.Health / Me.MaxHealth * 100 <= _config.Item("vhealth").GetValue <Slider>().Value)
                    {
                        if (_config.Item("uselanee").GetValue <bool>())
                        {
                            _e.Cast(Game.CursorPos);
                        }
                    }
                }
            }
        }