Exemple #1
0
        public static void OnHarass()
        {
            if (spells[Spells.Q].IsReady() && Utilities.IsEnabled("q.harass"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(Utilities.Player.AttackRange)))
                {
                    spells[Spells.Q].Cast(enemy);
                }
            }

            if (spells[Spells.W].IsReady() && Utilities.IsEnabled("w.harass"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(spells[Spells.W].Range)))
                {
                    spells[Spells.W].PredictionCast(enemy, Utilities.TheHitChance("sel.hitchance.w"), "sel.predict.w", Menus.menuCfg);
                }
            }

            if (spells[Spells.E].IsReady() && Utilities.IsEnabled("e.combo"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(ERange + spells[Spells.E].Range)))
                {
                    HitEnemy_E(enemy, Utilities.TheHitChance("sel.hitchance.e"));
                }
            }
        }
Exemple #2
0
 public static void W_OnCCandImmobile()
 {
     if (spells[Spells.W].IsReady() && Utilities.IsEnabled("w.misc"))
     {
         foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(spells[Spells.W].Range) && x.IsEnemyImmobile()))
         {
             spells[Spells.W].PredictionCast(enemy, Utilities.TheHitChance("sel.hitchance.w"), "sel.predict.w", Menus.menuCfg);
         }
     }
 }
Exemple #3
0
        public static void OnCombo()
        {
            if (spells[Spells.Q].IsReady() && Utilities.IsEnabled("q.combo"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(spells[Spells.Q].Range)))
                {
                    spells[Spells.Q].Cast(enemy);
                }
            }

            if (spells[Spells.W].IsReady() && Utilities.IsEnabled("w.combo"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(spells[Spells.W].Range)))
                {
                    spells[Spells.W].PredictionCast(enemy, Utilities.TheHitChance("sel.hitchance.w"), "sel.predict.w", Menus.menuCfg);
                }
            }

            if (spells[Spells.E].IsReady() && Utilities.IsEnabled("e.combo"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(ERange + spells[Spells.E].Range)))
                {
                    HitEnemy_E(enemy, Utilities.TheHitChance("sel.hitchance.e"));
                }
            }

            if (spells[Spells.R].IsReady() && Utilities.IsEnabled("r.combo"))
            {
                foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(spells[Spells.R].Range) &&
                                                                spells[Spells.R].GetPrediction(x, true).Hitchance >= Utilities.TheHitChance("sel.hitchance.r")))
                {
                    if (enemy.Health < CalculateDamage(enemy) && enemy.HealthPercent > 10)
                    {
                        if (Utilities.IsEnabled("r.champ.whitelist" + enemy.ChampionName))
                        {
                            spells[Spells.R].Cast(enemy);
                        }
                    }
                    if (Utilities.Player.CountEnemiesInRange(spells[Spells.R].Range) >= Utilities.SliderValue("r.min.hit"))
                    {
                        if (Utilities.IsEnabled("r.champ.whitelist" + enemy.ChampionName))
                        {
                            spells[Spells.R].CastIfWillHit(enemy, Utilities.SliderValue("r.min.hit"));
                        }
                    }
                }
            }
        }