Esempio n. 1
0
        private static void UseItem(Obj_AI_Hero target)
        {
            if (target != null)
            {
                if (BotRuinedKing.IsReady)
                {
                    BotRuinedKing.Cast(target);
                }
            }

            if (Tiamat.IsReady && Player.CountEnemyHeroesInRange(Tiamat.Range) > 0)
            {
                Tiamat.Cast();
            }

            if (Hydra.IsReady && Player.CountEnemyHeroesInRange(Hydra.Range) > 0)
            {
                Hydra.Cast();
            }

            if (Titanic.IsReady && !Player.Spellbook.IsAutoAttacking && Variables.Orbwalker.GetTarget() != null)
            {
                Titanic.Cast();
            }
        }
Esempio n. 2
0
        private void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || Orbwalk.CurrentMode != Orbwalk.Mode.Combo)
            {
                return;
            }
            var Slot = Player.GetSpellSlot(args.SData.Name);

            if (Slot == SpellSlot.Q || Slot == SpellSlot.W)
            {
                AACount = 0;
                if (Slot == SpellSlot.Q)
                {
                    Orbwalk.ResetAutoAttack();
                }
                if (Tiamat.IsReady() && Player.CountEnemysInRange((int)Tiamat.Range) >= 1)
                {
                    Tiamat.Cast();
                }
                if (Hydra.IsReady() && (Player.CountEnemysInRange((int)Hydra.Range) >= 2 || (Player.GetAutoAttackDamage(targetObj, true) < targetObj.Health && Player.CountEnemysInRange((int)Hydra.Range) == 1)))
                {
                    Hydra.Cast();
                }
            }
        }
Esempio n. 3
0
        public static void CastCircleThing()
        {
            var minions = Riven.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo;

            if (minions)
            {
                if (
                    !ObjectManager.Get <Obj_AI_Minion>()
                    .Any(x => x.IsValidTarget(ItemData.Ravenous_Hydra_Melee_Only.Range)))
                {
                    return;
                }
                Hydra.Cast();
                Tiamat.Cast();
            }
            else
            {
                if (
                    !ObjectManager.Get <AIHeroClient>()
                    .Any(x => x.IsValidTarget(ItemData.Ravenous_Hydra_Melee_Only.Range)))
                {
                    return;
                }

                Hydra.Cast();
                Tiamat.Cast();
            }
        }
Esempio n. 4
0
        static void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo | orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                var useW  = GetValueMenuBool("Combo.W");
                var useWh = GetValueMenuBool("Harass.W");

                if ((useW || useWh) && W.IsReady() && target.IsEnemy && target.IsValidTarget(W.Range))
                {
                    W.Cast();
                    lastW = Environment.TickCount;
                    player.IssueOrder(GameObjectOrder.AttackTo, target);
                }

                if (Tiamat.IsInRange(target.Position) && Tiamat.IsReady() && Tiamat.IsOwned())
                {
                    Tiamat.Cast();
                }

                if (Hydra.IsInRange(target.Position) && Hydra.IsReady() && Hydra.IsOwned())
                {
                    Hydra.Cast();
                }
            }
        }
Esempio n. 5
0
        private static void UseItems(Obj_AI_Base target)
        {
            var PlayerServerPosition = Player.ServerPosition.To2D();
            var targetServerPosition = target.ServerPosition.To2D();

            if (Hydra.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Hydra.Range)
            {
                Hydra.Cast();
            }
            if (Tiamat.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Tiamat.Range)
            {
                Tiamat.Cast();
            }
            if (Blade.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Blade.Range)
            {
                Blade.Cast(target);
            }
            if (Youmu.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Youmu.Range)
            {
                Youmu.Cast(target);
            }
            if (Bilgewater.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Bilgewater.Range)
            {
                Bilgewater.Cast(target);
            }
        }
Esempio n. 6
0
 private static void UseItem(Obj_AI_Hero target)
 {
     if (target != null &&
         ((HaveRMark(target) && rShadow.IsValid()) || target.HealthPercent < 40 || Player.HealthPercent < 50))
     {
         if (Bilgewater.IsReady)
         {
             Bilgewater.Cast(target);
         }
         if (BotRuinedKing.IsReady)
         {
             BotRuinedKing.Cast(target);
         }
     }
     if (Youmuu.IsReady && Common.CountEnemy(R.Range + 200) > 0)
     {
         Youmuu.Cast();
     }
     if (Tiamat.IsReady && Common.CountEnemy(Tiamat.Range) > 0)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady && Common.CountEnemy(Hydra.Range) > 0)
     {
         Hydra.Cast();
     }
     if (Titanic.IsReady && Common.CountEnemy(Titanic.Range) > 0)
     {
         Titanic.Cast();
     }
 }
Esempio n. 7
0
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void JungleClear()
            {
                if (E.IsReady() && Menu["UseEJungleClear"].Cast <CheckBox>().CurrentValue&& EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Player.GetAutoAttackRange()).Any())
                {
                    E.Cast();
                }

                if (Tiamat.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                }

                if (Hydra.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                }

                return;
            }
Esempio n. 8
0
        static void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if (!unit.IsMe)
            {
                return;
            }

            if (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                if (Q.IsReady() && (GetValueMenuBool("Combo.Q") || GetValueMenuBool("Harass.Q")))
                {
                    Q.Cast(player);
                }

                if (Tiamat.IsOwned() && Tiamat.IsReady() && Utils.TickCount - lastQ >= 2000)
                {
                    Tiamat.Cast();
                }

                if (Hydra.IsOwned() && Hydra.IsReady() && Utils.TickCount - lastQ >= 2300)
                {
                    Hydra.Cast();
                }
            }
        }
Esempio n. 9
0
 private static void UseItem(AIHeroClient target)
 {
     if (target != null && (HaveR(target) || target.HealthPercent < 40 || Player.HealthPercent < 50))
     {
         if (Bilgewater.IsReady())
         {
             Bilgewater.Cast(target);
         }
         if (BotRuinedKing.IsReady())
         {
             BotRuinedKing.Cast(target);
         }
     }
     if (Youmuu.IsReady() && Player.CountEnemyHeroesInRange(R.Range + E.Range) > 0)
     {
         Youmuu.Cast();
     }
     if (Tiamat.IsReady() && Player.CountEnemyHeroesInRange(Tiamat.Range) > 0)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady() && Player.CountEnemyHeroesInRange(Hydra.Range) > 0)
     {
         Hydra.Cast();
     }
     if (Titanic.IsReady() && !Player.Spellbook.IsAutoAttacking && Orbwalker.LastTarget != null)
     {
         Titanic.Cast();
     }
 }
Esempio n. 10
0
        private void Combo()
        {
            CurrentTarget = TargetSelector.GetTarget(Spells[R].Range, DamageType.Physical);

            CastQ(CurrentTarget);

            if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Combo.UseE"))
            {
                CastE(CurrentTarget);
            }

            if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Items.Enabled"))
            {
                if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Items.UseTIA"))
                {
                    Tiamat.Cast(null);
                }
                if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Items.UseHDR"))
                {
                    Hydra.Cast(null);
                }
                if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Items.UseBRK") && CurrentTarget != null)
                {
                    Blade.Cast(CurrentTarget);
                }
                if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Items.UseBLG") && CurrentTarget != null)
                {
                    Bilgewater.Cast(CurrentTarget);
                }
                if (YasuoMenu.getCheckBoxItem(YasuoMenu.ComboA, "Items.UseYMU"))
                {
                    Youmu.Cast(null);
                }
            }
        }
Esempio n. 11
0
 private void UseItem(Obj_AI_Base Target, bool IsFarm = false)
 {
     if (Bilgewater.IsReady() && !IsFarm)
     {
         Bilgewater.Cast(Target);
     }
     if (BladeRuined.IsReady() && !IsFarm)
     {
         BladeRuined.Cast(Target);
     }
     if (Tiamat.IsReady() && IsFarm ? Player.Distance3D(Target) <= Tiamat.Range : Player.CountEnemysInRange((int)Tiamat.Range) >= 1)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady() && IsFarm ? Player.Distance3D(Target) <= Hydra.Range : (Player.CountEnemysInRange((int)Hydra.Range) >= 2 || (Player.GetAutoAttackDamage(Target, true) < Target.Health && Player.CountEnemysInRange((int)Hydra.Range) == 1)))
     {
         Hydra.Cast();
     }
     if (RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1 && !IsFarm)
     {
         RanduinOmen.Cast();
     }
     if (Youmuu.IsReady() && Player.CountEnemysInRange((int)Orbwalk.GetAutoAttackRange()) >= 1 && !IsFarm)
     {
         Youmuu.Cast();
     }
 }
Esempio n. 12
0
        internal void UseItems(Obj_AI_Base target)
        {
            var KhazixServerPosition = Khazix.ServerPosition.LSTo2D();
            var targetServerPosition = target.ServerPosition.LSTo2D();

            if (Hydra.IsReady() && Khazix.LSDistance(target) <= Hydra.Range)
            {
                Hydra.Cast();
            }
            if (Tiamat.IsReady() && Khazix.LSDistance(target) <= Tiamat.Range)
            {
                Tiamat.Cast();
            }
            if (Titanic.IsReady() && Khazix.LSDistance(target) <= Tiamat.Range)
            {
                Tiamat.Cast();
            }
            if (Blade.IsReady() && Khazix.LSDistance(target) <= Blade.Range)
            {
                Blade.Cast(target);
            }
            if (Youmu.IsReady() && Khazix.LSDistance(target) <= Youmu.Range)
            {
                Youmu.Cast(target);
            }
            if (Bilgewater.IsReady() && Khazix.LSDistance(target) <= Bilgewater.Range)
            {
                Bilgewater.Cast(target);
            }
        }
Esempio n. 13
0
 private static void UseItem(Obj_AI_Hero target)
 {
     if (target != null && (target.HealthPercent < 40 || Player.HealthPercent < 50))
     {
         if (Bilgewater.IsReady)
         {
             Bilgewater.Cast(target);
         }
         if (BotRuinedKing.IsReady)
         {
             BotRuinedKing.Cast(target);
         }
     }
     if (Youmuu.IsReady && Player.CountEnemy(W.Range + E.Range) > 0)
     {
         Youmuu.Cast();
     }
     if (Tiamat.IsReady && Player.CountEnemy(Tiamat.Range) > 0)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady && Player.CountEnemy(Hydra.Range) > 0)
     {
         Hydra.Cast();
     }
     if (Titanic.IsReady && Player.CountEnemy(Player.GetRealAutoAttackRange()) > 0)
     {
         Titanic.Cast();
     }
 }
Esempio n. 14
0
        void Waveclear()
        {
            if (SpellSlot.Q.IsReady() && !Yasuo.LSIsDashing())
            {
                if (!TornadoReady && GetBool("Waveclear.UseQ", YasuoMenu.WaveclearM) && Orbwalker.IsAutoAttacking)
                {
                    var minion =
                        ObjectManager.Get <Obj_AI_Minion>()
                        .Where(x => x.IsValidMinion(Spells[Q].Range) && ((x.IsDashable() && (x.Health - Yasuo.GetSpellDamage(x, SpellSlot.Q) >= GetProperEDamage(x))) || (x.Health - Yasuo.GetSpellDamage(x, SpellSlot.Q) >= 0.15 * x.MaxHealth || x.QCanKill()))).MaxOrDefault(x => x.MaxHealth);
                    if (minion != null)
                    {
                        Spells[Q].Cast(minion);
                    }
                }

                else if (TornadoReady && GetBool("Waveclear.UseQ2", YasuoMenu.WaveclearM))
                {
                    var minions = ObjectManager.Get <Obj_AI_Minion>().Where(x => x.Distance(Yasuo) > Yasuo.AttackRange && x.IsValidMinion(Spells[Q2].Range) && ((x.IsDashable() && x.Health - Yasuo.GetSpellDamage(x, SpellSlot.Q) >= 0.85 * GetProperEDamage(x)) || (x.Health - Yasuo.GetSpellDamage(x, SpellSlot.Q) >= 0.10 * x.MaxHealth) || x.CanKill(SpellSlot.Q)));
                    var pred    =
                        MinionManager.GetBestLineFarmLocation(minions.Select(m => m.ServerPosition.To2D()).ToList(),
                                                              Spells[Q2].Width, Spells[Q2].Range);
                    if (pred.MinionsHit >= GetSliderInt("Waveclear.Qcount", YasuoMenu.WaveclearM))
                    {
                        Spells[Q2].Cast(pred.Position);
                    }
                }
            }

            if (SpellSlot.E.IsReady() && GetBool("Waveclear.UseE", YasuoMenu.WaveclearM) && (!GetBool("Waveclear.Smart", YasuoMenu.WaveclearM) || isHealthy) && (YasuoEvade.TickCount - WCLastE) >= GetSliderInt("Waveclear.Edelay", YasuoMenu.WaveclearM))
            {
                var           minions = ObjectManager.Get <Obj_AI_Minion>().Where(x => x.IsDashable() && ((GetBool("Waveclear.UseENK", YasuoMenu.WaveclearM) && (!GetBool("Waveclear.Smart", YasuoMenu.WaveclearM) || x.Health - GetProperEDamage(x) > GetProperEDamage(x) * 3)) || x.ECanKill()) && (GetBool("Waveclear.ETower", YasuoMenu.WaveclearM) || GetKeyBind("Misc.TowerDive", YasuoMenu.MiscM) || !GetDashPos(x).PointUnderEnemyTurret()));
                Obj_AI_Minion minion  = null;
                minion = minions.MaxOrDefault(x => GetDashPos(x).MinionsInRange(200));
                if (minion != null)
                {
                    Spells[E].Cast(minion);
                    WCLastE = YasuoEvade.TickCount;
                }
            }

            if (GetBool("Waveclear.UseItems", YasuoMenu.WaveclearM))
            {
                if (GetBool("Waveclear.UseTIA", YasuoMenu.WaveclearM))
                {
                    Tiamat.minioncount = GetSliderInt("Waveclear.MinCountHDR", YasuoMenu.WaveclearM);
                    Tiamat.Cast(null, true);
                }
                if (GetBool("Waveclear.UseHDR", YasuoMenu.WaveclearM))
                {
                    Hydra.minioncount = GetSliderInt("Waveclear.MinCountHDR", YasuoMenu.WaveclearM);
                    Hydra.Cast(null, true);
                }
                if (GetBool("Waveclear.UseYMU", YasuoMenu.WaveclearM))
                {
                    Youmu.minioncount = GetSliderInt("Waveclear.MinCountYOU", YasuoMenu.WaveclearM);
                    Youmu.Cast(null, true);
                }
            }
        }
Esempio n. 15
0
        void Combo()
        {
            float range = 0;

            if (SpellSlot.R.IsReady())
            {
                range = Spells[R].Range;
            }

            else if (Spells[Q2].IsReady())
            {
                range = Spells[Q2].Range;
            }

            else if (Spells[E].IsReady())
            {
                range = Spells[E].Range;
            }

            CurrentTarget = TargetSelector.GetTarget(range, DamageType.Physical);


            if (GetBool("Combo.UseEQ", YasuoMenu.ComboM))
            {
                PerformEQ();
            }

            CastQ(CurrentTarget);

            if (GetBool("Combo.UseE", YasuoMenu.ComboM))
            {
                CastE(CurrentTarget);
            }

            if (GetBool("Items.Enabled", YasuoMenu.ComboM))
            {
                if (GetBool("Items.UseTIA", YasuoMenu.ComboM))
                {
                    Tiamat.Cast(null);
                }
                if (GetBool("Items.UseHDR", YasuoMenu.ComboM))
                {
                    Hydra.Cast(null);
                }
                if (GetBool("Items.UseBRK", YasuoMenu.ComboM) && CurrentTarget != null)
                {
                    Blade.Cast(CurrentTarget);
                }
                if (GetBool("Items.UseBLG", YasuoMenu.ComboM) && CurrentTarget != null)
                {
                    Bilgewater.Cast(CurrentTarget);
                }
                if (GetBool("Items.UseYMU", YasuoMenu.ComboM))
                {
                    Youmu.Cast(null);
                }
            }
        }
Esempio n. 16
0
        private static void DoJungleclear()
        {
            try
            {
                var minion =
                    MinionManager.GetMinions(
                        Player.ServerPosition,
                        Q.Range,
                        MinionTypes.All,
                        MinionTeam.Neutral,
                        MinionOrderTypes.MaxHealth).OrderByDescending(x => x.MaxHealth).FirstOrDefault();

                if (minion == null)
                {
                    return;
                }

                if (Player.ManaPercent < Menu.Item("GFUELTalon.jungleclear.Mana").GetValue <Slider>().Value)
                {
                    return;
                }

                if (IsActive("GFUELTalon.jungleclear.W") && W.IsReady() && minion.IsValidTarget(W.Range))
                {
                    W.Cast(minion);
                }

                if (IsActive("GFUELTalon.jungleclear.Q") && Q.IsReady() && minion.IsValidTarget(Q.Range))
                {
                    Q.Cast(minion);
                }

                var min =
                    MinionManager.GetMinions(
                        Orbwalking.GetRealAutoAttackRange(Player),
                        MinionTypes.All,
                        MinionTeam.NotAlly).Count();

                if (min >= 1)
                {
                    if (Tiamat.IsReady())
                    {
                        Tiamat.Cast();
                    }

                    if (Hydra.IsReady())
                    {
                        Hydra.Cast();
                    }
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 17
0
        private static void JungleClear()
        {
            var pos = new List <Vector2>();
            List <Obj_AI_Base> mobs = MinionManager.GetMinions(
                Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Neutral);

            foreach (Obj_AI_Base minion in mobs)
            {
                if (minion != null)
                {
                    pos.Add(minion.Position.To2D());
                }

                // Normal Farms
                if (Q.IsReady() && minion.IsValidTarget() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= Q.Range &&
                    Config.Item("UseQFarm").GetValue <bool>())
                {
                    Orbwalker.SetAttack(false);
                    Q.Cast(minion);
                    Orbwalker.SetAttack(true);
                }
                if (W.IsReady() && minion.IsValidTarget() && Wnorm && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= W.Range &&
                    Config.Item("UseWFarm").GetValue <bool>() && (pos.Any()))
                {
                    MinionManager.FarmLocation pred = MinionManager.GetBestLineFarmLocation(pos, 70, 1025);

                    W.Cast(pred.Position);
                }
                if (E.IsReady() && minion.IsValidTarget() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= E.Range &&
                    Config.Item("UseEFarm").GetValue <bool>() && (pos.Any()))
                {
                    MinionManager.FarmLocation pred = MinionManager.GetBestCircularFarmLocation(pos, 300, 600);
                    E.Cast(pred.Position);
                }
                //Evolved

                if (W.IsReady() && minion.IsValidTarget() && Wevolved && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= WE.Range &&
                    Config.Item("UseWFarm").GetValue <bool>() && (pos.Any()))
                {
                    MinionManager.FarmLocation pred = MinionManager.GetBestLineFarmLocation(pos, 70, 1025);

                    W.Cast(pred.Position);
                }
                if (Config.Item("UseItems").GetValue <bool>())
                {
                    if (Hydra.IsReady() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= Hydra.Range)
                    {
                        Hydra.Cast();
                    }
                    if (Tiamat.IsReady() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= Tiamat.Range)
                    {
                        Tiamat.Cast();
                    }
                }
            }
        }
Esempio n. 18
0
        private static void DoLaneclear()
        {
            try
            {
                var minion = MinionManager.GetMinions(Player.Position, E.Range).MinOrDefault(x => x.Health);
                if (minion == null)
                {
                    return;
                }

                if (Player.ManaPercent < getSliderItem(laneclearMenu, "GFUELTalon.laneclear.Mana"))
                {
                    return;
                }

                if (getCheckBoxItem(laneclearMenu, "GFUELTalon.laneclear.W") && W.IsReady())
                {
                    if (GetCenterMinion().IsValidTarget())
                    {
                        W.Cast(GetCenterMinion());
                    }
                }

                var min =
                    MinionManager.GetMinions(
                        Orbwalking.GetRealAutoAttackRange(Player),
                        MinionTypes.All,
                        MinionTeam.NotAlly).Count();

                if (min >= 3)
                {
                    if (Tiamat.IsReady())
                    {
                        Tiamat.Cast();
                    }

                    if (Hydra.IsReady())
                    {
                        Hydra.Cast();
                    }
                }

                if (getCheckBoxItem(laneclearMenu, "GFUELTalon.laneclear.E") && E.IsReady())
                {
                    if (E.GetDamage(minion) > minion.Health)
                    {
                        E.CastOnUnit(minion);
                    }
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 19
0
 public static void UseHydra(AttackableUnit target)
 {
     if (Tiamat.IsOwned() || Hydra.IsOwned())
     {
         if ((Tiamat.IsReady() || Hydra.IsReady()) && Player.Instance.Distance(target) <= Hydra.Range)
         {
             Tiamat.Cast();
             Hydra.Cast();
         }
     }
 }
Esempio n. 20
0
        private void AssassinateProgram(Obj_AI_Hero target)
        {
            if ((target == null) || !target.IsValidTarget())
            {
                return;
            }

            if (E.Instance.IsReady() && !Q.IsInRange(target))
            {
                E.Cast(target.Position);
            }
            if (Q.Instance.IsReady())
            {
                Q.CastOnUnit(target);
            }
            if ((_isMidAir && target.IsValidTarget(Hydra.Range)) ||
                target.IsValidTarget(Tiamat.Range) ||
                target.IsValidTarget(TitanicHydra.Range))
            {
                if (Hydra.IsReady())
                {
                    Hydra.Cast();
                }
                if (TitanicHydra.IsReady())
                {
                    TitanicHydra.Cast();
                }
                if (Tiamat.IsReady())
                {
                    Tiamat.Cast();
                }
            }
            if (W.Instance.IsReady())
            {
                SebbySpell(W, target);
            }

            if (Youmuu.IsReady() && target.IsValidTarget(Player.AttackRange + 400))
            {
                Youmuu.Cast();
            }
            if (Hydra.IsReady() && target.IsValidTarget(Hydra.Range))
            {
                Hydra.Cast();
            }
            if (TitanicHydra.IsReady() && target.IsValidTarget(TitanicHydra.Range))
            {
                TitanicHydra.Cast();
            }
            if (Tiamat.IsReady() && target.IsValidTarget(Tiamat.Range))
            {
                Tiamat.Cast();
            }
        }
Esempio n. 21
0
        private void LaneClear()
        {
            var useQ                 = Config.Item("LaneClearQ").GetValue <bool>();
            var useW                 = Config.Item("LaneClearW").GetValue <bool>();
            var useE                 = Config.Item("LaneClearE").GetValue <bool>();
            var useItems             = Config.Item("LaneClearItems").GetValue <bool>();
            var laneClearManaManager = Config.Item("LaneClearManaManager").GetValue <Slider>().Value;
            var minimumEMinions      = Config.Item("MinimumEMinions").GetValue <Slider>().Value;

            var minionsq =
                Cache.GetMinions(Player.Position, Q.Range, SebbyLib.MinionTeam.Enemy)
                .OrderByDescending(x => x.Distance(Player.Position))
                .FirstOrDefault();

            if (useItems)
            {
                if (Hydra.IsReady() && minionsq.IsValidTarget(Hydra.Range))
                {
                    Hydra.Cast();
                }

                if (Tiamat.IsReady() && minionsq.IsValidTarget(Tiamat.Range))
                {
                    Tiamat.Cast();
                }
            }

            if (Player.ManaPercent < laneClearManaManager)
            {
                return;
            }

            var minionselist = Cache.GetMinions(Player.Position, E.Range, SebbyLib.MinionTeam.Enemy);
            var minionsw     = minionselist.OrderByDescending(x => x.Distance(Player.Position)).FirstOrDefault();
            var minionse     = E.GetCircularFarmLocation(minionselist);

            if (useQ && Q.Instance.IsReady() && minionsq.IsValidTarget() && (minionsq != null) &&
                (minionsq.Health < GetRealQDamage(minionsq)))
            {
                Q.CastOnUnit(minionsq);
            }

            if (useW && W.Instance.IsReady() && minionsw.IsValidTarget() && (minionsw != null) &&
                (minionsw.Health < W.GetDamage(minionsw)))
            {
                W.Cast(minionsw.Position);
            }

            if ((minionse.MinionsHit >= minimumEMinions) && useE &&
                E.Instance.IsReady())
            {
                E.Cast(minionse.Position);
            }
        }
Esempio n. 22
0
 public static void useHydra(Obj_AI_Base target)
 {
     if (Tiamat.IsOwned() || Hydra.IsOwned())
     {
         if ((Tiamat.IsReady() || Hydra.IsReady()) && Player.Instance.Distance(target) <= Hydra.Range)
         {
             Tiamat.Cast();
             Hydra.Cast();
         }
     }
 }
Esempio n. 23
0
 public static void useHydraNot()
 {
     if (Tiamat.IsOwned() || Hydra.IsOwned())
     {
         if (Tiamat.IsReady() || Hydra.IsReady())
         {
             Tiamat.Cast();
             Hydra.Cast();
         }
     }
 }
Esempio n. 24
0
 public static void useHydraNot(Obj_AI_Base target)
 {
     if (Tiamat.IsOwned() || RavenousHydra.IsOwned() || TitanicHydra.IsOwned())
     {
         if (Tiamat.IsReady() || RavenousHydra.IsReady() || TitanicHydra.IsReady())
         {
             Tiamat.Cast();
             TitanicHydra.IsReady();
             RavenousHydra.Cast();
         }
     }
 }
Esempio n. 25
0
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void LaneClear()
            {
                IEnumerable <Obj_AI_Minion> ListMinions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, E.Range);

                if (ListMinions.Any() && E.IsReady())
                {
                    if (Menu["UseELaneClear"].Cast <CheckBox>().CurrentValue&& ListMinions.Count() >= Menu["Min Minions E"].Cast <Slider>().CurrentValue)
                    {
                        E.Cast();
                    }
                }

                IEnumerable <Obj_AI_Minion> IEMinions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, Q.Range).Where(minion => minion.Health <= SpellDamage(minion, SpellSlot.Q)).OrderByDescending(minion => minion.Distance(Player2D));

                if (IEMinions.Any() && Q.IsReady())
                {
                    if (Menu["UseQLaneClear"].Cast <CheckBox>().CurrentValue)
                    {
                        Q.Cast(IEMinions.First());
                    }
                }

                if (Tiamat.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                    UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                }

                if (Hydra.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                    UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                }

                return;
            }
Esempio n. 26
0
 public static void UseHydraNot(AttackableUnit target)
 {
     if (!Tiamat.IsOwned() && !Hydra.IsOwned())
     {
         return;
     }
     if (!Tiamat.IsReady() && !Hydra.IsReady())
     {
         return;
     }
     Tiamat.Cast();
     Hydra.Cast();
 }
Esempio n. 27
0
        public static void useHydraNot()
        {
            var useH = Misc.isChecked(ItemsMenu, "useHydra");

            if (Tiamat.IsOwned() || Hydra.IsOwned() && useH)
            {
                if ((Tiamat.IsReady() || Hydra.IsReady()))
                {
                    Tiamat.Cast();
                    Hydra.Cast();
                }
            }
        }
Esempio n. 28
0
        public static void useHydra(Obj_AI_Base target)
        {
            var useH = Misc.isChecked(ItemsMenu, "useHydra");

            if (Tiamat.IsOwned() || Hydra.IsOwned() && useH)
            {
                if ((Tiamat.IsReady() || Hydra.IsReady()) && _Player.Distance(target) <= Hydra.Range)
                {
                    Tiamat.Cast();
                    Hydra.Cast();
                }
            }
        }
Esempio n. 29
0
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void LaneClear()
            {
                if (E.IsReady())
                {
                    if (EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, E.Range).Count() >= Menu["Min Minions E"].Cast <Slider>().CurrentValue&& Menu["UseELaneClear"].Cast <CheckBox>().CurrentValue&& !Player.HasBuff("GarenE"))
                    {
                        E.Cast();
                    }
                    else if (EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.ServerPosition, E.Range).Where(it => Player.GetSpellDamage(it, SpellSlot.Q) < it.Health).Any() && !Player.HasBuff("GarenE"))
                    {
                        E.Cast();
                    }
                }

                if (Tiamat != null)
                {
                    if (Tiamat.IsReady())
                    {
                        bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                        if (UseItem)
                        {
                            Tiamat.Cast();
                        }
                        UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                        if (UseItem)
                        {
                            Tiamat.Cast();
                        }
                    }
                }

                if (Hydra != null)
                {
                    if (Hydra.IsReady())
                    {
                        bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                        if (UseItem)
                        {
                            Hydra.Cast();
                        }
                        UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                        if (UseItem)
                        {
                            Hydra.Cast();
                        }
                    }
                }

                return;
            }
Esempio n. 30
0
 public static void useHydra(Obj_AI_Base target)
 {
     if (Tiamat.IsOwned() || RavenousHydra.IsOwned() || TitanicHydra.IsOwned())
     {
         if ((Tiamat.IsReady() && Player.Instance.Distance(target) <= RavenousHydra.Range ||
              RavenousHydra.IsReady()) && Player.Instance.Distance(target) <= RavenousHydra.Range ||
             TitanicHydra.IsReady())
         {
             Tiamat.Cast();
             TitanicHydra.Cast();
             RavenousHydra.Cast();
         }
     }
 }