Esempio n. 1
0
        private static void OnJungle()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("junglemana"))
            {
                return;
            }

            var mob = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Orbwalking.GetRealAutoAttackRange(ObjectManager.Player) + 100, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

            if (mob == null || mob.Count == 0)
            {
                return;
            }

            if (Spells.Q.IsReady() && Utilities.Enabled("q.jungle") && mob[0].IsValidTarget(Spells.Q.Range))
            {
                Spells.Q.Cast(mob[0].Position);
            }

            if (Spells.W.IsReady() && Utilities.Enabled("w.jungle") && mob[0].IsValidTarget(Spells.W.Range))
            {
                Spells.W.Cast(mob[0].Position);
            }

            if (Spells.E.IsReady() && Utilities.Enabled("e.jungle") && mob[0].IsValidTarget(Spells.E.Range))
            {
                Spells.E.Cast(mob[0].Position);
            }
        }
Esempio n. 2
0
        private static void OnClear()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("clearmana"))
            {
                return;
            }

            var minions = MinionManager.GetMinions(ObjectManager.Player.Position, Spells.E.Range, MinionTypes.All, MinionTeam.NotAlly);

            if (minions == null || minions.Count == 0)
            {
                return;
            }

            if (Spells.Q.IsReady() && Utilities.Enabled("q.clear"))
            {
                var minionloc = Spells.E.GetLineFarmLocation(minions);
                foreach (var min in minions.Where(x => x.IsValidTarget(Spells.Q.Range) && x.Health < Spells.Q.GetDamage(x)))
                {
                    Spells.Q.Cast(minionloc.Position);
                }
            }

            if (Spells.W.IsReady() && Utilities.Enabled("w.clear"))
            {
                var minionloc = Spells.W.GetLineFarmLocation(minions);

                {
                    Spells.W.Cast(minionloc.Position);
                }
            }

            if (Spells.E.IsReady() && Utilities.Enabled("e.clear"))
            {
                var minionloc = Spells.E.GetLineFarmLocation(minions);
                {
                    Spells.E.Cast(minionloc.Position);
                }
            }
        }
Esempio n. 3
0
        private static void OnMixed()
        {
            if (ObjectManager.Player.ManaPercent < Utilities.Slider("harassmana"))
            {
                return;
            }

            var target = TargetSelector.GetTarget(Spells.E.Range, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (Spells.Q.IsReady() && Utilities.Enabled("q.harass") && target.IsValidTarget(Spells.Q.Range) && !Utilities.IsInvulnerable(target, DamageType.Magical))
                {
                    Spells.Q.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }

                if (Spells.E.IsReady() && Utilities.Enabled("e.harass") && target.IsValidTarget(Spells.E.Range) && !Utilities.IsInvulnerable(target, DamageType.Magical))
                {
                    Spells.E.HikiCast(target, Utilities.HikiChance("hitchance"), "prediction", Menus.Config);
                }
            }
        }