Example #1
0
        public override void LaneClear()
        {
            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                var qminions = Q.SetSkillshot().GetBestCircularCastPosition(Q.LaneMinions());
                if (qminions.HitNumber >= LaneClearMenu.SliderValue("Qhit"))
                {
                    Q.Cast(qminions.CastPosition);
                }
            }

            if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider("Wmana", user.ManaPercent))
            {
                var wminions = W.SetSkillshot().GetBestCircularCastPosition(W.LaneMinions());
                if (wminions.HitNumber + 1 >= LaneClearMenu.SliderValue("Whit"))
                {
                    WCast(wminions.CastPosition);
                }
            }

            if (E.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider("Emana", user.ManaPercent))
            {
                foreach (var ball in BallsList)
                {
                    var Eminions = Eball.SetSkillshot().GetBestLinearCastPosition(Eball.LaneMinions(), 0, ball.ServerPosition.To2D());
                    if (Eminions.HitNumber >= LaneClearMenu.SliderValue("Ehit"))
                    {
                        Eball.Cast(ball.ServerPosition);
                    }
                }
            }
        }
Example #2
0
        public static void Execute(bool Jungle = false)
        {
            foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsValidTarget()))
            {
                if (Q.IsReady() && LaneClearMenu.CheckBoxValue("Q"))
                {
                    Q.Cast(target, HitChance.Medium);
                }

                if (E.IsReady() && target.IsKillable(E.Range) && LaneClearMenu.CheckBoxValue("E"))
                {
                    E.Cast(target, HitChance.Medium);
                }
            }

            if (!Jungle)
            {
                return;
            }
            foreach (var target in EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(m => m != null && m.IsValidTarget()))
            {
                if (Q.IsReady() && LaneClearMenu.CheckBoxValue("Q"))
                {
                    Q.Cast(target, HitChance.Medium);
                }

                if (E.IsReady() && target.IsKillable(E.Range) && LaneClearMenu.CheckBoxValue("E"))
                {
                    E.Cast(target, HitChance.Medium);
                }
            }
        }
Example #3
0
 public override void LastHit()
 {
     if (LaneClearMenu.CheckBoxValue("QLH") && Q.IsReady())
     {
         var barrel = BarrelsList.OrderByDescending(b => b.Barrel.CountEnemyMinionsInRange(E.Width)).FirstOrDefault(m => KillableBarrel(m) != null && m.Barrel.CountEnemyMinionsInRange(E.Width) > 0 && (KillableBarrel(m).IsValidTarget(Q.Range) || KillableBarrel(m).IsInRange(user, user.GetAutoAttackRange())));
         if (barrel != null)
         {
             var EkillMinions = EntityManager.MinionsAndMonsters.EnemyMinions.Count(m => BarrelKill(m) && BarrelsList.Any(b => b.Barrel.IsInRange(m, E.Width)) && m.IsValidTarget())
                                >= LaneClearMenu.SliderValue("EKill");
             if (KillableBarrel(barrel).IsValidTarget(user.GetAutoAttackRange()))
             {
                 Orbwalker.ForcedTarget = KillableBarrel(barrel);
             }
             else
             {
                 if (KillableBarrel(barrel).IsValidTarget(Q.Range) && EkillMinions)
                 {
                     Q.Cast(barrel.Barrel);
                 }
             }
         }
         else
         {
             if (LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
             {
                 foreach (var minion in EntityManager.MinionsAndMonsters.EnemyMinions.OrderByDescending(m => m.Distance(user)).Where(m => m.IsKillable(Q.Range) && Q.WillKill(m) && !BarrelsList.Any(b => b.Barrel.Distance(m) <= E.Width)))
                 {
                     Q.Cast(minion);
                 }
             }
         }
     }
 }
Example #4
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(Q.Range)))
     {
         if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && user.HealthPercent > 25)
         {
             if (target.CountEnemiesInRange(1000) < 2 && target.CountEnemyMinionsInRange(Q.Width) > 1)
             {
                 Q.Cast(target);
             }
         }
         if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W))
         {
             if (W.Handle.ToggleState == 1 && user.HealthPercent > 50)
             {
                 W.Cast();
             }
             else
             {
                 W.Cast();
             }
         }
         if (E.IsReady() && target.IsKillable(E.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.E))
         {
             E.Cast(target, HitChance.Medium);
         }
     }
 }
Example #5
0
        public override void LaneClear()
        {
            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                var qminions = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(Q.LaneMinions(), Q.SetSkillshot().Width * 2, (int)Q.Range, Q.CastDelay, Q.SetSkillshot().Speed);
                if (qminions.HitNumber >= LaneClearMenu.SliderValue("Qhit"))
                {
                    Q.Cast(qminions.CastPosition);
                }
            }

            if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider("Wmana", user.ManaPercent))
            {
                var wminions = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(W.LaneMinions(), W.SetSkillshot().Width * 2, (int)W.Range, W.CastDelay, W.SetSkillshot().Speed);
                if (wminions.HitNumber + 1 >= LaneClearMenu.SliderValue("Whit"))
                {
                    WCast(wminions.CastPosition);
                }
            }

            if (E.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider("Emana", user.ManaPercent))
            {
                foreach (var ball in BallsList)
                {
                    var Eminions = EntityManager.MinionsAndMonsters.GetLineFarmLocation(Eball.LaneMinions(), Eball.Width, (int)Eball.Range, ball.ServerPosition.Extend(user, 100));
                    if (Eminions.HitNumber >= LaneClearMenu.SliderValue("Ehit"))
                    {
                        Eball.Cast(ball.ServerPosition);
                    }
                }
            }
        }
Example #6
0
        public override void LaneClear()
        {
            var Cirarmloc = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(E.Range)), ((Spell.Skillshot)E).Width, (int)E.Range);

            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && user.HealthPercent > 25)
            {
                if (user.CountEnemiesInRange(1000 + Q.Range) < 2 && Cirarmloc.HitNumber > 2)
                {
                    Q.Cast(Cirarmloc.CastPosition);
                }
            }
            if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W))
            {
                if (W.Handle.ToggleState == 1 && user.HealthPercent > 50)
                {
                    W.Cast();
                }
                else
                {
                    W.Cast();
                }
            }
            var linefarmloc = EntityManager.MinionsAndMonsters.GetLineFarmLocation(EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(E.Range)), ((Spell.Skillshot)E).Width, (int)E.Range);

            if (E.IsReady() && linefarmloc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.E))
            {
                E.Cast(linefarmloc.CastPosition);
            }
        }
Example #7
0
        public override void LaneClear()
        {
            foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(1000)))
            {
                if (Q.IsReady() && LaneClearMenu.CheckBoxValue(Q.Slot) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
                {
                    Q.Cast(target, HitChance.Low);
                }

                if (W.IsReady() && LaneClearMenu.CheckBoxValue(W.Slot) && LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
                {
                    W.Cast(target, HitChance.Medium);
                }

                if (E.IsReady() && LaneClearMenu.CheckBoxValue(E.Slot) && LaneClearMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
                {
                    if (SelectBall(target) != null)
                    {
                        E.Cast(SelectBall(target));
                    }
                    else
                    {
                        if (target.IsKillable(E.Range))
                        {
                            E.Cast(target);
                        }
                    }
                }
            }
        }
Example #8
0
        public override void LaneClear()
        {
            var Cirarmloc = Q.SetSkillshot().GetBestCircularCastPosition(Q.LaneMinions());

            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && user.PredictHealthPercent() > 25)
            {
                if (user.CountEnemyHeros((int)(1000 + Q.Range)) < 2 && Cirarmloc.HitNumber > 2)
                {
                    var pos = Cirarmloc.CastPosition;
                    if (pos.IsSafe())
                    {
                        Q.Cast(pos);
                    }
                }
            }
            if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W))
            {
                if (W.Handle.ToggleState == 1 && user.PredictHealthPercent() > 50)
                {
                    W.Cast();
                }
                else
                {
                    W.Cast();
                }
            }

            var linefarmloc = E.SetSkillshot().GetBestLinearCastPosition(E.LaneMinions());

            if (E.IsReady() && linefarmloc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.E))
            {
                E.Cast(linefarmloc.CastPosition);
            }
        }
Example #9
0
        public override void LaneClear()
        {
            var linefarmloc = EntityManager.MinionsAndMonsters.GetLineFarmLocation(EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(Q.Range)), Q.SetSkillshot().Width, (int)Q.Range);

            if (Q.IsReady() && linefarmloc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast(linefarmloc.CastPosition);
            }
        }
Example #10
0
        public override void LaneClear()
        {
            var linefarmloc = Q.SetSkillshot().GetBestLinearCastPosition(Q.LaneMinions());

            if (Q.IsReady() && linefarmloc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast(linefarmloc.CastPosition);
            }
        }
Example #11
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable()))
     {
         if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
         {
             Q.Cast(target);
         }
     }
 }
Example #12
0
 public override void LaneClear()
 {
     Orbwalker.ForcedTarget = null;
     if (Q.IsReady())
     {
         if (E.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.E))
         {
             foreach (var minion in EntityManager.MinionsAndMonsters.EnemyMinions.OrderBy(m => m.Health).Where(m => m.IsKillable(E.Range)))
             {
                 var pred = E.GetPrediction(minion);
                 if (EntityManager.MinionsAndMonsters.EnemyMinions.Count(e => e.Distance(pred.CastPosition) <= E.SetSkillshot().Width&& BarrelKill(e)) >= LaneClearMenu.SliderValue("EKill"))
                 {
                     if (BarrelsList.Count(b => b.Barrel.IsInRange(pred.CastPosition, E.SetSkillshot().Width)) < 1 ||
                         (BarrelsList.Count(b => b.Barrel.IsInRange(pred.CastPosition, ConnectionRange)) > 0 && BarrelsList.Count(b => b.Barrel.IsInRange(pred.CastPosition, E.SetSkillshot().Width)) < 1))
                     {
                         E.Cast(pred.CastPosition);
                         return;
                     }
                 }
             }
         }
         if (LaneClearMenu.CheckBoxValue(SpellSlot.Q))
         {
             var barrel = BarrelsList.OrderByDescending(b => b.Barrel.CountEnemyMinionsInRange(E.SetSkillshot().Width)).FirstOrDefault(m => KillableBarrel(m) != null && m.Barrel.CountEnemyMinionsInRange(E.SetSkillshot().Width) > 0 && (KillableBarrel(m).IsValidTarget(Q.Range) || KillableBarrel(m).IsInRange(user, user.GetAutoAttackRange())));
             if (barrel != null)
             {
                 var EkillMinions = EntityManager.MinionsAndMonsters.EnemyMinions.Count(m => BarrelKill(m) && BarrelsList.Any(b => b.Barrel.IsInRange(m, E.SetSkillshot().Width)) && m.IsValidTarget())
                                    >= LaneClearMenu.SliderValue("EKill");
                 var EHitMinions = EntityManager.MinionsAndMonsters.EnemyMinions.Count(m => BarrelsList.Any(b => b.Barrel.IsInRange(m, E.SetSkillshot().Width)) && m.IsValidTarget())
                                   >= LaneClearMenu.SliderValue("EHits");
                 if (KillableBarrel(barrel).IsValidTarget(user.GetAutoAttackRange()))
                 {
                     Orbwalker.ForcedTarget = KillableBarrel(barrel);
                 }
                 else
                 {
                     if (KillableBarrel(barrel).IsValidTarget(Q.Range) && (EkillMinions || EHitMinions))
                     {
                         Q.Cast(barrel.Barrel);
                     }
                 }
             }
             else
             {
                 if (LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
                 {
                     foreach (var minion in EntityManager.MinionsAndMonsters.EnemyMinions.OrderByDescending(m => m.Distance(user)).Where(m => m.IsKillable(Q.Range) && Q.WillKill(m) && !BarrelsList.Any(b => b.Barrel.Distance(m) <= E.SetSkillshot().Width)))
                     {
                         Q.Cast(minion);
                     }
                 }
             }
         }
     }
 }
Example #13
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable()))
     {
         if (Q.IsReady() && LaneClearMenu.CheckBoxValue("r" + SpellSlot.Q) && Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancchaosorbm")
         {
             QUltimate.Cast(target);
         }
     }
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable()))
     {
         if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q))
         {
             Q.Cast(target);
         }
     }
     foreach (
         var circFarmLoc in
         EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(1000)).Select(
             target =>
             EntityManager.MinionsAndMonsters.GetCircularFarmLocation(
                 EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(W.Range)),
                 W.SetSkillshot().Width, (int)W.Range))
         .Where(
             circFarmLoc =>
             W.IsReady() && circFarmLoc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.W) &&
             LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent) && Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslide"))
     {
         W.Cast(circFarmLoc.CastPosition);
     }
     if (LaneClearMenu.CheckBoxValue(SpellSlot.W) && WReturn.IsReady() &&
         Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslidereturn")
     {
         WReturn.Cast();
     }
     foreach (
         var circFarmLoc in
         EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(1000)).Select(
             target =>
             EntityManager.MinionsAndMonsters.GetCircularFarmLocation(
                 EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(WUltimate.Range)),
                 WUltimate.SetSkillshot().Width, (int)WUltimate.Range))
         .Where(
             circFarmLoc =>
             WUltimate.IsReady() && circFarmLoc.HitNumber > 1 && LaneClearMenu.CheckBoxValue("r" + SpellSlot.W) &&
             Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancslide"))
     {
         WUltimate.Cast(circFarmLoc.CastPosition);
     }
     if (LaneClearMenu.CheckBoxValue("r" + SpellSlot.W) && RReturn.IsReady() &&
         Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancslidereturn")
     {
         RReturn.Cast();
     }
 }
Example #14
0
File: Ashe.cs Project: uvbs/WSUBot
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsValidTarget()))
     {
         foreach (var spell in SpellList.Where(s => s.IsReady() && s == W && LaneClearMenu.CheckBoxValue(s.Slot) && LaneClearMenu.CompareSlider(s.Slot + "mana", user.ManaPercent)))
         {
             var skillshot = spell as Spell.Skillshot;
             skillshot.Cast(target, HitChance.Medium);
         }
     }
 }
Example #15
0
 public override void LaneClear()
 {
     if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
     {
         var farmloc = Q.SetSkillshot().GetBestCircularCastPosition(Q.Enemies());
         if (farmloc.HitNumber > 1)
         {
             Q.Cast(farmloc.CastPosition);
         }
     }
 }
Example #16
0
 public override void LaneClear()
 {
     foreach (var target in
              from target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsValidTarget())
              from spell in SpellList.Where(s => s.IsReady() && s != R && LaneClearMenu.CheckBoxValue(s.Slot) && LaneClearMenu.CompareSlider(s.Slot + "mana", user.ManaPercent))
              where spell.Slot == SpellSlot.Q
              select target)
     {
         Q.Cast(target);
     }
 }
Example #17
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null))
     {
         if (Q.IsReady() && target.IsKillable(Q.Range) && LaneClearMenu.CheckBoxValue(Q.Slot) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
         {
             Q.Cast(target, HitChance.Low);
         }
         if (LaneClearMenu.CheckBoxValue(W.Slot) && target.IsKillable(W.Range))
         {
             SetectCard(target);
         }
     }
 }
Example #18
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsValidTarget()))
     {
         if (target.IsKillable(Q.Range) && Q.IsReady() && LaneClearMenu.CheckBoxValue(Q.Slot))
         {
             Q.Cast();
         }
         if (target.IsKillable(E.Range) && E.IsReady() && LaneClearMenu.CheckBoxValue(E.Slot))
         {
             E.Cast(target);
         }
     }
 }
Example #19
0
        public override void LaneClear()
        {
            if (E.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider("Emana", user.ManaPercent) && LaneClearMenu.CompareSlider("Ekills", EntityManager.MinionsAndMonsters.EnemyMinions.Count(e => e.IsKillable(E.Range) && e.EKill())))
            {
                E.Cast();
            }

            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                foreach (var mob in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(Q.Range)))
                {
                    QCast(mob, false, LaneClearMenu.SliderValue("Qhits"));
                }
            }
        }
Example #20
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(1000)))
     {
         if (Q.IsReady() && target.IsKillable(Q.Range) && LaneClearMenu.CheckBoxValue(Q.Slot) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
         {
             Q.Cast(target, HitChance.Low);
         }
         if (W.IsReady() && OriannaBall != null && target.PredictPosition().IsInRange(OriannaBall, W.Range) && LaneClearMenu.CheckBoxValue(W.Slot) &&
             LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
         {
             W.Cast();
         }
     }
 }
Example #21
0
        public override void LaneClear()
        {
            foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable()))
            {
                if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q))
                {
                    Q.Cast(target);
                }

                if (W.IsReady() && target.IsKillable(W.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.W))
                {
                    W.Cast();
                }
            }
        }
Example #22
0
        public override void LaneClear()
        {
            if (Q3)
            {
                return;
            }

            foreach (var m in Q.LaneMinions())
            {
                if (Q.IsReady() && LaneClearMenu.CheckBoxValue("Q"))
                {
                    Q.Cast(m, 45);
                }
            }
        }
Example #23
0
        public override void LaneClear()
        {
            var linefarmloc = Q.SetSkillshot().GetBestLinearCastPosition(Q.LaneMinions());

            if (Q.IsReady() && linefarmloc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast(linefarmloc.CastPosition);
            }
            foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null))
            {
                if (LaneClearMenu.CheckBoxValue(W.Slot) && target.IsKillable(W.Range))
                {
                    SetectCard(target);
                }
            }
        }
Example #24
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable()))
     {
         var lineFarmLoc = EntityManager.MinionsAndMonsters.GetLineFarmLocation(EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(W.Range)), W.SetSkillshot().Width, (int)W.Range);
         if (Q.IsReady() && target.IsKillable(Q.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent) &&
             Q.WillKill(target))
         {
             Q.Cast(target);
         }
         if (W.IsReady() && lineFarmLoc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
         {
             W.Cast(lineFarmLoc.CastPosition);
         }
     }
 }
Example #25
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(e => e != null && e.IsKillable(Q.Range)))
     {
         if (Orbwalker.ValidAzirSoldiers.Count < 1 && W.IsReady() && LaneClearMenu.CheckBoxValue(W.Slot) && LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
         {
             W.Cast(target);
         }
         else
         {
             if (Q.IsReady() && LaneClearMenu.CheckBoxValue(Q.Slot) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
             {
                 Q.Cast(target, HitChance.Low);
             }
         }
     }
 }
Example #26
0
 public override void LaneClear()
 {
     if (LaneClearMenu.CheckBoxValue(SpellSlot.E) && E.IsReady())
     {
         Vectors.ECast(LaneClearMenu.SliderValue("Ehits"));
     }
     if (LaneClearMenu.CheckBoxValue(SpellSlot.Q) && Q.IsReady())
     {
         foreach (var mob in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(Q.Range) && Q.WillKill(m)))
         {
             if (mob != null)
             {
                 Q.Cast(mob);
             }
         }
     }
 }
Example #27
0
 public override void LaneClear()
 {
     foreach (
         var circFarmLoc in
             EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(1000))
                 .Select(
                     target =>
                         EntityManager.MinionsAndMonsters.GetCircularFarmLocation(
                             EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsKillable(Q.Range)),
                             Q.SetSkillshot().Width, (int) Q.Range))
                 .Where(
                     circFarmLoc =>
                         Q.IsReady() && circFarmLoc.HitNumber > 1 && LaneClearMenu.CheckBoxValue(SpellSlot.Q) &&
                         LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent)))
     {
         Q.Cast(circFarmLoc.CastPosition);
     }
 }
Example #28
0
File: Akali.cs Project: uvbs/WSUBot
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(Q.Range)))
     {
         if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q))
         {
             Q.Cast(target);
         }
         if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W) && user.CountEnemyHeros(1000) > 1)
         {
             W.Cast(user.PredictPosition());
         }
         if (E.IsReady() && target.IsKillable(E.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.E))
         {
             E.Cast();
         }
     }
 }
Example #29
0
        public override void LaneClear()
        {
            foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsKillable(Q.Range)))
            {
                if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
                {
                    Q.Cast(target, HitChance.Medium);
                }
                if (W.IsReady() && target.IsKillable(W.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
                {
                    W.Cast();
                }

                /* Save E
                 * if (E.IsReady() && target.IsKillable(E.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
                 * {
                 *  E.Cast(target, HitChance.Medium);
                 * }*/
            }
        }
Example #30
0
 public override void LaneClear()
 {
     foreach (var target in EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m != null && m.IsValidTarget()))
     {
         if (W.IsReady() && target.IsKillable(W.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
         {
             if (target.IsKillable(W.Range) && W.Handle.ToggleState == 1)
             {
                 W.Cast();
             }
             else
             {
                 W.Cast();
             }
         }
         if (E.IsReady() && target.IsKillable(E.Range) && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
         {
             E.Cast();
         }
     }
 }