Esempio n. 1
0
        private static void ByJungle()
        {
            var useLQ = CastCheckbox(Menus.Lane, "Q");
            var useLW = CastCheckbox(Menus.Lane, "W");
            var Mana  = CastSlider(Menus.Lane, "Mana");
            var mini  = CastSlider(Menus.Lane, "WMin");

            var monters = EntityManager.MinionsAndMonsters.GetJungleMonsters(LeBlanc.Position, Q.Range).Where(my => !my.IsDead && my.IsValid && !my.IsInvulnerable);

            if (useLQ && useLW && LeBlanc.ManaPercent > Mana)
            {
                foreach (var monstros in monters)
                {
                    if (monters != null)
                    {
                        if (W.GetPrediction(monstros).CollisionObjects.Where(may => may.IsEnemy && !may.IsDead && may.IsValid && !may.IsInvulnerable).Count() > 1)
                        {
                            W.Cast(monstros);
                        }
                        else if (W.IsReady() && Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancwreturn")
                        {
                            WAc.Cast();
                        }
                        else if (IsPassiveM(monstros))
                        {
                            Q.Cast(monstros);
                        }
                    }
                }
            }
        }
Esempio n. 2
0
        private static void ByLane()
        {
            var useLQ = CastCheckbox(Menus.Lane, "Q");
            var useLW = CastCheckbox(Menus.Lane, "W");
            var Mana  = CastSlider(Menus.Lane, "Mana");
            var mini  = CastSlider(Menus.Lane, "WMin");

            var minion = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, Q.Range);

            if (useLQ && useLW && LeBlanc.ManaPercent > Mana)
            {
                foreach (var mayminoon in minion)
                {
                    if (minion != null)
                    {
                        if (W.GetPrediction(mayminoon).CollisionObjects.Where(may => may.IsEnemy && !may.IsDead && may.IsValid && !may.IsInvulnerable).Count() >= mini)
                        {
                            W.Cast(mayminoon);
                        }
                        else if (W.IsReady() && Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancwreturn")
                        {
                            WAc.Cast();
                        }
                        else if (IsPassiveM(mayminoon))
                        {
                            Q.Cast(mayminoon);
                        }
                    }
                }
            }
        }