public static void Execute() { if (Menu.GetCheckBoxValue("W")) { var ally = EntityManager.Heroes.Allies.Where(h => h.IsValidTarget(TargetSelector.Range) && !h.IsMe).OrderByDescending(h => h.CountEnemiesInside(600) * h.GetPriority() / h.HealthPercent).FirstOrDefault(); if (ally != null && ally.CountEnemiesInside(600) > Util.MyHero.CountEnemiesInside(600)) { SpellManager.CastW(ally); } } if (Menu.GetCheckBoxValue("E")) { foreach (var h in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget(SpellManager.E.Range))) { SpellManager.Push(h); } } }
public static void Execute() { var target = TargetSelector.Target; if (target == null) { return; } if (Menu.GetSliderValue("E1") > 0 && SpellSlot.E.IsReady()) { switch (Menu.GetSliderValue("E1")) { case 1: PerformPull(); break; case 2: PerformPush(); break; case 3: if (EntityManager.Heroes.Allies.HealthPercent(TargetSelector.Range) >= EntityManager.Heroes.Enemies.HealthPercent(TargetSelector.Range)) { PerformPull(); } else { PerformPush(); } break; } } if (SpellSlot.W.IsReady()) { if (Menu.GetSliderValue("W1") > 0) { switch (Menu.GetSliderValue("W1")) { case 1: if (SpellManager.QTarget.IsValidTarget() && SpellManager.QTarget.NetworkId == target.NetworkId) { SpellManager.CastW(Champion.Best_Offensive_W_Ally(target)); } break; case 2: SpellManager.CastW(Champion.Best_Offensive_W_Ally(target)); break; } } if (Menu.GetSliderValue("W2") > 0) { var ally = EntityManager.Heroes.Allies.Where(h => h.IsValidTarget(TargetSelector.Range) && !h.IsMe && h.HealthPercent <= Menu.GetSliderValue("W2")) .OrderByDescending(h => h.GetPriority() / h.HealthPercent) .FirstOrDefault(); if (ally != null) { SpellManager.CastW(ally); } } } if (SpellSlot.Q.IsReady()) { if (Menu.GetSliderValue("Q1") > 0) { switch (Menu.GetSliderValue("Q1")) { case 1: SpellManager.CastQ1(target); break; case 2: foreach (var h in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget())) { SpellManager.CastQ1(h); } break; } } if (Menu.GetSliderValue("Q2") > 0 && SpellManager.QTarget.IsValidTarget()) { switch (Menu.GetSliderValue("Q2")) { case 1: if (SpellManager.QTarget.NetworkId == target.NetworkId) { SpellManager.CastQ2(target); } break; case 2: if (SpellManager.QTarget.IsInRange(target, 350)) { SpellManager.CastQ2(target); } break; } } } }
private static void Game_OnUpdate(EventArgs args) { if (Util.MyHero.IsDead) { return; } if (MenuManager.MiscMenu.GetSliderValue("W") > 0 && SpellSlot.W.IsReady()) { var ally = EntityManager.Heroes.Allies.Where( h => h.IsValidTarget(1300) && !h.IsMe && h.CountEnemiesInside(450) >= MenuManager.MiscMenu.GetSliderValue("W")) .OrderByDescending(h => h.CountEnemiesInside(450) * h.GetPriority() / h.HealthPercent) .FirstOrDefault(); if (ally != null && ally.CountEnemiesInside(450) > Util.MyHero.CountEnemiesInside(450)) { SpellManager.CastW(ally); } } if ((MenuManager.MiscMenu.GetCheckBoxValue("Turret.Q") && SpellSlot.Q.IsReady()) || (MenuManager.MiscMenu.GetCheckBoxValue("Turret.E") && SpellSlot.E.IsReady())) { var t = EntityManager.Turrets.Allies.FirstOrDefault(t2 => !t2.IsDead && Util.MyHero.IsInRange(t2, 800)); if (t != null) { foreach (var h in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget() && h.IsInRange(t, 1100))) { if (MenuManager.MiscMenu.GetCheckBoxValue("Turret.E") && SpellSlot.E.IsReady()) { SpellManager.Pull(h); } if (MenuManager.MiscMenu.GetCheckBoxValue("Turret.Q") && SpellSlot.Q.IsReady()) { SpellManager.CastQ1(h); } } } } KillSteal.Execute(); if (IsCombo) { Combo.Execute(); } else if (IsHarass) { Harass.Execute(); } else if (IsClear) { Clear.Execute(); } else if (IsLastHit) { LastHit.Execute(); } if (IsFlee) { Flee.Execute(); } }