Example #1
0
        public static void JungleFarm()
        {
            var minion =
                MinionManager.GetMinions(
                    Player.Position, 600, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth)
                .FirstOrDefault();

            if (!minion.IsValidTarget())
            {
                return;
            }

            if (Queuer.Queue.Count > 0)
            {
                return;
            }

            if (CH.LastTiamatCancel < Environment.TickCount)
            {
                CH.LastTiamatCancel = int.MaxValue;
                SH.CastItems(Target);
            }

            SH.Orbwalk(minion);
            if (SH.Spells[SpellSlot.E].IsReady() && CH.CanE && MenuHandler.GetMenuBool("EJ"))
            {
                if (minion.IsValidTarget(SH.Spells[SpellSlot.E].Range))
                {
                    if (minion != null)
                    {
                        SH.Spells[SpellSlot.E].Cast(minion.Position);
                    }
                }
            }

            if (SH.Spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 &&
                minion.IsValidTarget(SH.Spells[SpellSlot.W].Range) && MenuHandler.GetMenuBool("WJ"))
            {
                SH.CastW();
            }

            SH.CastItems(minion);
            if (SH.Spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250 &&
                MenuHandler.GetMenuBool("QJ"))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanMove)
                {
                    SH.CastQ(minion);
                }
            }
        }
Example #2
0
        public static void Laneclear()
        {
            var minion = MinionManager.GetMinions(Player.Position, SH.QRange).FirstOrDefault();

            if (!minion.IsValidTarget())
            {
                return;
            }

            if (Queuer.Queue.Count > 0)
            {
                return;
            }

            if (CH.LastTiamatCancel < Environment.TickCount)
            {
                CH.LastTiamatCancel = int.MaxValue;
                SH.CastItems(Target);
            }

            if (HealthPrediction.GetHealthPrediction(minion, (int)(ObjectManager.Player.AttackCastDelay * 1000)) > 0 &&
                Player.GetAutoAttackDamage(minion) >
                HealthPrediction.GetHealthPrediction(minion, (int)(ObjectManager.Player.AttackCastDelay * 1000)))
            {
                SH.Orbwalk(minion);
            }

            if (minion != null && (SH.Spells[SpellSlot.W].IsReady() && MenuHandler.GetMenuBool("WWC") && CH.CanW &&
                                   Environment.TickCount - CH.LastE >= 250 &&
                                   minion.IsValidTarget(SH.Spells[SpellSlot.W].Range) &&
                                   SH.Spells[SpellSlot.W].GetDamage(minion) > minion.Health))
            {
                SH.CastW();
            }

            if (minion != null && (SH.Spells[SpellSlot.Q].IsReady() && MenuHandler.GetMenuBool("QWC") &&
                                   Environment.TickCount - CH.LastE >= 250 &&
                                   (SH.Spells[SpellSlot.Q].GetDamage(minion) + Player.GetAutoAttackDamage(minion) >
                                    minion.Health &&
                                    MenuHandler.GetMenuBool("QWC-AA")) ||
                                   (SH.Spells[SpellSlot.Q].GetDamage(minion) > minion.Health &&
                                    MenuHandler.GetMenuBool("QWC-LH"))))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(minion);
                }
            }
        }