Exemplo n.º 1
0
        private void BeforeAttack(Orbwalking.BeforeAttackEventArgs Args)
        {
            if (Menu.Item("Forcus", true).GetValue <bool>())
            {
                if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo ||
                    Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => !x.IsDead && !x.IsZombie && HavePassive(x)))
                    {
                        TargetSelector.SetTarget(enemy);
                        return;
                    }
                }
                else if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
                {
                    var all = MinionManager.GetMinions(Me.Position, Orbwalking.GetRealAutoAttackRange(Me),
                                                       MinionTypes.All, MinionTeam.NotAlly).Where(HavePassive);

                    if (all.Any())
                    {
                        Orbwalker.ForceTarget(all.FirstOrDefault());
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void Harass()
        {
            if (Me.ManaPercent >= Menu.Item("HarassMana", true).GetValue <Slider>().Value)
            {
                if (E.IsReady())
                {
                    if (Menu.Item("HarassE", true).GetValue <bool>())
                    {
                        foreach (var target in HeroManager.Enemies.Where(x => x.IsValidTarget(E.Range)))
                        {
                            E.CastOnUnit(target, true);
                        }
                    }

                    if (Menu.Item("HarassEToMinion", true).GetValue <bool>())
                    {
                        foreach (var minion in MinionManager.GetMinions(E.Range).Where(m =>
                                                                                       m.Health < Me.GetAutoAttackDamage(m) && m.CountEnemiesInRange(m.BoundingRadius + 150) >= 1))
                        {
                            var etarget = E.GetTarget();

                            if (etarget != null)
                            {
                                return;
                            }

                            E.CastOnUnit(minion, true);
                            Orbwalker.ForceTarget(minion);
                        }
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void LaneClearQ(GameObjectProcessSpellCastEventArgs Args)
        {
            if (Me.ManaPercent >= Menu.Item("LaneClearMana", true).GetValue <Slider>().Value)
            {
                if (Menu.Item("LaneClearQ", true).GetValue <bool>() && Q.IsReady())
                {
                    var minions =
                        MinionManager.GetMinions(Me.Position, 700)
                        .Where(m => m.Health < Q.GetDamage(m) + Me.GetAutoAttackDamage(m));

                    var minion = minions.FirstOrDefault();
                    if (minion != null && Args.Target.NetworkId != minion.NetworkId)
                    {
                        Q.Cast(Game.CursorPos);
                        Orbwalker.ForceTarget(minions.FirstOrDefault());
                    }
                }
            }
        }