Esempio n. 1
0
        public static void jungleLastQ()
        {
            var minionQ = GetJungleMinion(Q.Range);
            var barrels = Barrrels.GetBarrels();

            if (!barrels.Any())
            {
                if (IsNotNull(minionQ))
                {
                    Q.Cast(minionQ);
                }
            }
        }
Esempio n. 2
0
        public static void laneLastQ()
        {
            var minionQ = GetLastMinion(SpellSlot.Q);
            var barrels = Barrrels.GetBarrels().Where(b => b.IsValidTarget(Q.Range));

            if (!barrels.Any())
            {
                if (IsNotNull(minionQ))
                {
                    Q.Cast(minionQ);
                }
            }
        }
Esempio n. 3
0
        public static void jungleE(int count)
        {
            var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(m => m.IsValidTarget(E.Range)).ToArray();

            if (minions.Length == 0)
            {
                return;
            }
            var pos    = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(minions, E.Width, (int)E.Range);
            var barrel = Barrrels.GetBarrels().FirstOrDefault(b => b.Distance(pos.CastPosition) <= 380);

            if (pos.HitNumber >= count && barrel == null)
            {
                E.Cast(pos.CastPosition);
            }
        }
Esempio n. 4
0
        public static void laneE(int count, int keepE)
        {
            var minions = EntityManager.MinionsAndMonsters.GetLaneMinions().Where(m => m.IsValidTarget(E.Range)).ToArray();

            if (minions.Length == 0)
            {
                return;
            }
            var pos    = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(minions, E.Width, (int)E.Range);
            var barrel = Barrrels.GetBarrels().FirstOrDefault(b => b.Distance(pos.CastPosition) <= 350);

            if (pos.HitNumber >= count && barrel == null && Player.GetSpell(SpellSlot.E).Ammo > keepE)
            {
                E.Cast(pos.CastPosition);
            }
        }
Esempio n. 5
0
        public static void castE(Obj_AI_Base target)
        {
            if (!target.IsValidTarget(E.Range + 50) || !E.IsReady())
            {
                return;
            }
            var barrelNearPlayer = Barrrels.GetBarrels().FirstOrDefault(b => b.IsInRange(Player.Instance, Q.Range + 150));

            if (barrelNearPlayer == null)
            {
                var sliderClose = GetSliderValue(MenuTypes.Combo, "eComboRangeClose");
                var sliderFar   = GetSliderValue(MenuTypes.Combo, "eComboRangeFar");
                E.Cast(target.IsInRange(Player.Instance, 650) ? Player.Instance.Position.Extend(target, sliderClose).To3D() : Player.Instance.Position.Extend(target, sliderFar).To3D());
            }
            else if (barrelNearPlayer.Health <= 1 && barrelNearPlayer.Health >= 1)
            {
                var pred   = E.GetPrediction(target);
                var barrel = Barrrels.GetBarrels().FirstOrDefault(b => b.Distance(pred.CastPosition) <= 380);

                if (barrel == null)
                {
                    var predpos = pred.CastPosition;
                    if (Q.IsReady() && predpos.Distance(barrelNearPlayer) <= 825)
                    {
                        E.Cast(predpos);
                        CastEBetween();
                        var killBC          = Barrrels.GetKillBarrelClosest();
                        var barrelWithENemy = Barrrels.GetBarrelWithEemyInside();
                        if (killBC != null && barrelWithENemy != null && killBC.Distance(barrelWithENemy) < 825)
                        {
                            Q.Cast(killBC);
                        }
                    }
                }
            }
        }