public static void Execute() { var target = TargetSelector.Target; if (target.IsValidTarget()) { if (Util.MyHero.IsInAutoAttackRange(target) && Champion.PassiveStack > 2 - Menu.GetSliderValue("Gank.Stack")) { return; } if (Menu.GetCheckBoxValue("W") && target.IsValidTarget(900f)) { if (Menu.GetCheckBoxValue("Gank.Ward") && WardManager.CanCastWard) { if (Insec.IsReady && Menu.GetCheckBoxValue("Gank.R")) { Insec.Execute(); // C H E C K } else if (Extensions.Distance(Util.MyHero, target, true) > Math.Pow(450, 2) && SpellManager.CanCastW1) { Champion.GapCloseWithWard(target); } } else { Champion.GapCloseWithoutWard(target); } } if (SpellManager.CanCastW1 && !target.IsValidTarget(SpellManager.W1Range)) { return; } if (WardManager.IsTryingToJump) { return; } if (Menu.GetCheckBoxValue("E") && !SpellSlot.Q.IsReady()) { SpellManager.CastE(target); } if (Menu.GetCheckBoxValue("Q")) { SpellManager.CastQ(target); } } }
public static void Execute() { foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies.Where(m => m.IsValidTarget(TargetSelector.Range) && m.HealthPercent < 40)) { var result = enemy.GetBestCombo(); if (result.IsKillable) { if (Menu.GetCheckBoxValue("Q") && result.CanKillWith(SpellSlot.Q)) { SpellManager.CastQ(enemy); } if (Menu.GetCheckBoxValue("E") && result.CanKillWith(SpellSlot.E)) { SpellManager.CastE(enemy); } if (Menu.GetCheckBoxValue("R") && SpellSlot.R.GetSpellDamage(enemy) >= enemy.TotalShieldHealth()) { SpellManager.CastR(enemy); } var custom = (Menu.GetCheckBoxValue("Q") && result.CanKillWith(SpellSlot.Q)) || (Menu.GetCheckBoxValue("E") && result.CanKillWith(SpellSlot.E)) || (Menu.GetCheckBoxValue("R") && result.CanKillWith(SpellSlot.R)); if (Menu.GetCheckBoxValue("W") && custom) { if (Menu.GetCheckBoxValue("Ward")) { Champion.GapCloseWithWard(enemy); } else { Champion.GapCloseWithoutWard(enemy); } } } if (Menu.GetCheckBoxValue("Ignite") && SpellManager.IgniteIsReady && Util.MyHero.GetSummonerSpellDamage(enemy, DamageLibrary.SummonerSpells.Ignite) >= enemy.Health) { SpellManager.Ignite.Cast(enemy); } if (Menu.GetCheckBoxValue("Smite") && SpellManager.CanUseSmiteOnHeroes && enemy.IsInSmiteRange() && Util.MyHero.GetSummonerSpellDamage(enemy, DamageLibrary.SummonerSpells.Smite) >= enemy.Health) { Util.MyHero.Spellbook.CastSpell(SpellManager.Smite.Slot, enemy); } } }
public static void Execute() { var target = TargetSelector.Target; if (target.IsValidTarget()) { if (Util.MyHero.HealthPercent <= Menu.GetSliderValue("Normal.W") && SpellSlot.W.IsReady()) { if (SpellSlot.W.IsFirstSpell()) { if (target.IsInAutoAttackRange(Util.MyHero) || Util.MyHero.IsInAutoAttackRange(target)) { SpellManager.CastW1(Util.MyHero); } } else { if (Util.MyHero.IsInAutoAttackRange(target)) { SpellManager.CastW2(); } } } if (Util.MyHero.IsInAutoAttackRange(target) && Champion.PassiveStack > 2 - Menu.GetSliderValue("Normal.Stack")) { return; } if (Menu.GetCheckBoxValue("Normal.R")) { SpellManager.CastR(target); } var t = _R.BestHitR(Menu.GetSliderValue("Normal.R.Hit")); if (Menu.GetSliderValue("Normal.R.Hit") <= t.Item1) { SpellManager.CastR(t.Item2); } if (Menu.GetCheckBoxValue("E")) { SpellManager.CastE(target); } if (Menu.GetCheckBoxValue("Q") && SpellSlot.Q.IsReady()) { if (SpellSlot.Q.IsFirstSpell()) { SpellManager.CastQ1(target); } else if (!target.HaveR()) { SpellManager.CastQ2(target); } } if (Menu.GetCheckBoxValue("W") && SpellSlot.W.IsReady() && !SpellSlot.W.IsFirstSpell() && Util.MyHero.IsInAutoAttackRange(target)) { SpellManager.CastW2(); } if (_Q.IsDashing || _Q.IsWaitingMissile || _Q.HasQ2Buff) { return; } if (Util.MyHero.Distance(target, true) > Math.Pow(500, 2) && Menu.GetCheckBoxValue("W") && SpellManager.CanCastW1) { if (Menu.GetCheckBoxValue("Normal.Ward")) { Champion.GapCloseWithWard(target); } else { Champion.GapCloseWithoutWard(target); } } } }