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); } } }
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e) { if (!sender.IsValidTarget()) { return; } if (MenuManager.MiscMenu.GetCheckBoxValue("Interrupter")) { SpellManager.Pull(sender); SpellManager.CastQ(sender); } }
public static void PerformPull() { switch (Menu.GetSliderValue("E2")) { case 1: SpellManager.Pull(TargetSelector.Target); break; case 2: foreach (var h in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget())) { SpellManager.Pull(h); } break; } }
public static void Execute() { if (!(Util.MyHero.ManaPercent >= Menu.GetSliderValue("Mana"))) { return; } var minion = SpellManager.E.JungleClear(false); if (Menu.GetCheckBoxValue("E")) { SpellManager.Pull(minion); } if (Menu.GetCheckBoxValue("Q")) { SpellManager.CastQ(minion); } }
public static void Execute() { foreach (var h in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget(TargetSelector.Range))) { if (Menu.GetCheckBoxValue("Ignite") && SpellManager.IgniteIsReady && Util.MyHero.GetSummonerSpellDamage(h, DamageLibrary.SummonerSpells.Ignite) >= h.Health) { SpellManager.Ignite.Cast(h); } if (Menu.GetCheckBoxValue("Q") && SpellSlot.Q.IsReady() && Util.MyHero.GetSpellDamage(h, SpellSlot.Q) >= h.Health) { SpellManager.CastQ1(h); } if (Menu.GetCheckBoxValue("E") && SpellSlot.E.IsReady() && Util.MyHero.GetSpellDamage(h, SpellSlot.E) >= h.Health) { SpellManager.Pull(h); } } }
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(); } }