private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsValidTarget()) { return; } if (MenuManager.MiscMenu.GetCheckBoxValue("Gapcloser.E")) { if (TargetSelector.Ally.Distance(e.End, true) < TargetSelector.Ally.Distance(e.Start, true)) { SpellManager.Push(sender); } else { SpellManager.Pull(sender); } } if (MenuManager.MiscMenu.GetCheckBoxValue("Gapcloser.Q")) { if (TargetSelector.Ally.Distance(e.End, true) > TargetSelector.Ally.Distance(e.Start, true)) { SpellManager.CastQ(sender); } } }
public static void PerformPush() { switch (Menu.GetSliderValue("E2")) { case 1: SpellManager.Push(TargetSelector.Target); break; case 2: foreach (var h in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget())) { SpellManager.Push(h); } break; } }
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); } } }