Beispiel #1
0
        private static void OnCombo()
        {
            var Target   = TargetSelector.GetTarget(Q.Range, DamageType.Physical);
            var Target2  = TargetSelector.GetTarget(2550, DamageType.Physical);
            var Buuuuuu  = ObjectManager.Get <Obj_AI_Minion>().FirstOrDefault(x => x.Name == Target2.Name);
            var tentacle = ObjectManager.Get <Obj_AI_Minion>().First(x => x.Name == "God");
            var enemies  = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var wminion =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, W.Range + 350)
                .Where(
                    m =>
                    m.IsValidTarget())
                .OrderBy(m => m.Distance(Target))
                .FirstOrDefault();

            if (IllaoiMenu.comboR() && R.IsReady() && Player.ServerPosition.CountEnemiesInRange(500f) >= IllaoiMenu.comboR2())
            {
                R.Cast();
            }

            if (Q.IsReady() && Target.IsValidTarget(Q.Range))
            {
                foreach (var qenemies in enemies)
                {
                    var useQ = IllaoiMenu.MyCombo["combo.q"
                                                  + qenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useQ && Q.GetPrediction(qenemies).HitChancePercent >= IllaoiMenu.comboQH())
                    {
                        Q.Cast(Q.GetPrediction(qenemies).CastPosition);
                    }
                }
            }
            if (Target == null && Buuuuuu != null)
            {
                if (IllaoiMenu.comboQ1() && Q.IsReady())
                {
                    Q.Cast(Buuuuuu.ServerPosition);
                }
            }
            if (tentacle != null)
            {
                if (IllaoiMenu.gapcloserW() && wminion != null &&
                    Target.Distance(Player) >= Player.GetAutoAttackRange(Target) &&
                    wminion.Distance(Target) <= Player.Distance(Target) &&
                    wminion.Distance(Player) <= W.Range)
                {
                    W.Cast(wminion);
                }

                if (IllaoiMenu.comboW() && W.IsReady() && Target.IsValidTarget(W.Range) && Target.Position.CountEnemiesInRange(800) >= IllaoiMenu.comboW1())
                {
                    W.Cast();
                }
            }

            if (E.IsReady() && Target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = IllaoiMenu.MyCombo["combo.e"
                                                  + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE && E.GetPrediction(eenemies).HitChancePercent >= IllaoiMenu.comboEH())
                    {
                        if (!E.GetPrediction(eenemies).CollisionObjects.Any())
                        {
                            E.Cast(E.GetPrediction(eenemies).CastPosition);
                        }
                    }
                }
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= IllaoiMenu.youmusEnemies() || Player.HealthPercent >= IllaoiMenu.itemsYOUMUShp()) && MyActivator.youmus.IsReady() && IllaoiMenu.youmus() && MyActivator.youmus.IsOwned())
            {
                MyActivator.youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= IllaoiMenu.bilgewaterHP() && IllaoiMenu.bilgewater() && MyActivator.bilgewater.IsReady() && MyActivator.bilgewater.IsOwned())
            {
                MyActivator.bilgewater.Cast(Target);
                return;
            }

            if (Player.HealthPercent <= IllaoiMenu.checkhp() && IllaoiMenu.tiamat() && MyActivator.Tiamat.IsReady() && MyActivator.Tiamat.IsOwned() && MyActivator.Tiamat.IsInRange(Target))
            {
                MyActivator.Tiamat.Cast();
                return;
            }
            if (Player.HealthPercent <= IllaoiMenu.checkhp() && IllaoiMenu.hydra() && MyActivator.Hydra.IsReady() && MyActivator.Hydra.IsOwned() && MyActivator.Hydra.IsInRange(Target))
            {
                MyActivator.Hydra.Cast();
                return;
            }

            if (Player.HealthPercent <= IllaoiMenu.botrkHP() && IllaoiMenu.botrk() && MyActivator.botrk.IsReady() && MyActivator.botrk.IsOwned())
            {
                MyActivator.botrk.Cast(Target);
                return;
            }
        }