/// <summary> /// Called when the game updates itself. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Killsteal(EventArgs args) { /// <summary> /// The KillSteal W Logic. /// </summary> if (Vars.W.IsReady() && Vars.Menu["spells"]["w"]["killsteal"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => !Invulnerable.Check(t) && t.IsValidTarget(Vars.W.Range) && !t.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange()) && Vars.GetRealHealth(t) < (float)GameObjects.Player.GetSpellDamage(t, SpellSlot.W))) { Vars.W.Cast(Vars.W.GetPrediction(target).CastPosition); return; } } /// <summary> /// The KillSteal Q Logic. /// </summary> if (Vars.Q.IsReady() && Vars.Menu["spells"]["q"]["killsteal"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => !Invulnerable.Check(t) && t.IsValidTarget(Vars.Q.Range) && !t.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange()) && !Vars.AnyWall(GameObjects.Player.ServerPosition, Vars.Q.GetPrediction(t).UnitPosition) && Vars.GetRealHealth(t) < (float)GameObjects.Player.GetSpellDamage(t, SpellSlot.Q))) { Vars.Q.Cast(Vars.Q.GetPrediction(target).UnitPosition); return; } } /// <summary> /// The KillSteal R Logic. /// </summary> if (Vars.R.IsReady() && Vars.Menu["spells"]["r"]["killsteal"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => !Invulnerable.Check(t) && t.IsValidTarget(Vars.R.Range + 150f) && Vars.GetRealHealth(t) < (float) GameObjects.Player.GetSpellDamage( t, SpellSlot.R, t.IsValidTarget(Vars.R.Range) ? DamageStage.Default : DamageStage.Detonation))) { Vars.R.Cast(Vars.R.GetPrediction(target).UnitPosition); } } }
/// <summary> /// Called when the game updates itself. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Automatic(EventArgs args) { if (GameObjects.Player.IsRecalling()) { return; } /// <summary> /// The Automatic Q Logic. /// </summary> if (Vars.Q.IsReady() && Vars.Menu["spells"]["q"]["logical"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => Bools.IsImmobile(t) && !Invulnerable.Check(t) && t.IsValidTarget(Vars.Q.Range) && !Vars.AnyWall(GameObjects.Player.ServerPosition, t.ServerPosition))) { Vars.Q.Cast(target.ServerPosition); return; } } /// <summary> /// The Automatic W Logic. /// </summary> if (Vars.W.IsReady() && Vars.Menu["spells"]["w"]["logical"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => Bools.IsImmobile(t) && t.IsValidTarget(Vars.W.Range) && !Invulnerable.Check(t, DamageType.Magical, false))) { Vars.W.Cast(target.ServerPosition); } } /// <summary> /// The Semi-Automatic R Management. /// </summary> if (Vars.R.IsReady() && Vars.Menu["spells"]["r"]["bool"].GetValue <MenuBool>().Value && Vars.Menu["spells"]["r"]["key"].GetValue <MenuKeyBind>().Active) { var target = GameObjects.EnemyHeroes.Where( t => !Invulnerable.Check(t) && t.IsValidTarget(Vars.R.Range) && Vars.Menu["spells"]["r"]["whitelist"][Targets.Target.ChampionName.ToLower()] .GetValue <MenuBool>().Value).OrderBy(o => o.Health).FirstOrDefault(); if (target != null) { Vars.R.Cast(Vars.R.GetPrediction(target).UnitPosition); } } }
/// <summary> /// Called when the game updates itself. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Combo(EventArgs args) { if (!Targets.Target.IsValidTarget() || Bools.IsImmobile(Targets.Target) || Invulnerable.Check(Targets.Target, DamageType.Magical, false)) { return; } /// <summary> /// The R Combo Logic. /// </summary> if (Vars.R.IsReady() && Targets.Target.IsValidTarget(Vars.R.Range) && Vars.Menu["spells"]["r"]["combo"].GetValue <MenuBool>().Value && Vars.Menu["spells"]["r"]["whitelist"][Targets.Target.ChampionName.ToLower()].GetValue <MenuBool>() .Value) { Vars.R.CastOnUnit(Targets.Target); return; } /// <summary> /// The Q Combo Logic. /// </summary> if (Vars.Q.IsReady() && Targets.Target.IsValidTarget(Vars.Q.Range) && !Vars.AnyWall(GameObjects.Player.ServerPosition, Vars.Q.GetPrediction(Targets.Target).UnitPosition) && Vars.Menu["spells"]["q"]["combo"].GetValue <MenuBool>().Value) { if (!Vars.Q.GetPrediction(Targets.Target).CollisionObjects.Any()) { Vars.Q.Cast(Vars.Q.GetPrediction(Targets.Target).UnitPosition); return; } } if (Bools.HasSheenBuff()) { return; } /// <summary> /// The E Combo Logic. /// </summary> if (Vars.E.IsReady() && Targets.Target.IsValidTarget(Vars.E.Range) && Vars.Menu["spells"]["e"]["combo"].GetValue <MenuBool>().Value) { Vars.E.Cast(); } }
/// <summary> /// Called when the game updates itself. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Combo(EventArgs args) { if (Bools.HasSheenBuff() || !Targets.Target.IsValidTarget() || Invulnerable.Check(Targets.Target)) { return; } /// <summary> /// The Q Combo Logic. /// </summary> if (Vars.Q.IsReady() && Targets.Target.IsValidTarget(Vars.Q.Range) && !Vars.AnyWall(GameObjects.Player.ServerPosition, Vars.Q.GetPrediction(Targets.Target).UnitPosition) && Vars.Menu["spells"]["q"]["combo"].GetValue <MenuBool>().Value) { Vars.Q.Cast(Vars.Q.GetPrediction(Targets.Target).UnitPosition); } /// <summary> /// The E Combo Logic. /// </summary> if (Vars.E.IsReady() && Targets.Target.IsValidTarget(Vars.E.Range) && !Targets.Target.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange()) && Vars.Menu["spells"]["e"]["engager"].GetValue <MenuBool>().Value) { if (GameObjects.Player.Distance(Game.CursorPos) > GameObjects.Player.GetRealAutoAttackRange() && GameObjects.Player.ServerPosition.Extend( Game.CursorPos, Vars.E.Range - GameObjects.Player.GetRealAutoAttackRange()).CountEnemyHeroesInRange(1000f) < 3 && Targets.Target.Distance( GameObjects.Player.ServerPosition.Extend( Game.CursorPos, Vars.E.Range - GameObjects.Player.GetRealAutoAttackRange())) < GameObjects.Player.GetRealAutoAttackRange()) { Vars.E.Cast(Game.CursorPos); } } /// <summary> /// The R Combo Logic. /// </summary> if (Vars.R.IsReady() && !Vars.Q.IsReady() && Vars.Menu["spells"]["r"]["combo"].GetValue <MenuBool>().Value) { Vars.R.CastIfWillHit(Targets.Target, 2); } }
/// <summary> /// Called when the game updates itself. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Harass(EventArgs args) { if (!Targets.Target.IsValidTarget() || Invulnerable.Check(Targets.Target)) { return; } /// <summary> /// The Q Harass Logic. /// </summary> if (Vars.Q.IsReady() && Targets.Target.IsValidTarget(Vars.Q.Range) && GameObjects.Player.ManaPercent > ManaManager.GetNeededMana(Vars.Q.Slot, Vars.Menu["spells"]["q"]["harass"]) && !Vars.AnyWall(GameObjects.Player.ServerPosition, Vars.Q.GetPrediction(Targets.Target).UnitPosition) && Vars.Menu["spells"]["q"]["harass"].GetValue <MenuSliderButton>().BValue) { Vars.Q.Cast(Vars.Q.GetPrediction(Targets.Target).UnitPosition); } }
/// <summary> /// Called when the game updates itself. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Killsteal(EventArgs args) { /// <summary> /// The KillSteal Q Logic. /// </summary> if (Vars.Q.IsReady() && Vars.Menu["spells"]["q"]["killsteal"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => t.IsValidTarget(Vars.Q.Range) && !t.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange()) && !Invulnerable.Check(t, DamageType.Magical, false) && !Vars.AnyWall(GameObjects.Player.ServerPosition, Vars.Q.GetPrediction(t).UnitPosition) && Vars.GetRealHealth(t) < (float)GameObjects.Player.GetSpellDamage(t, SpellSlot.Q))) { if (!Vars.Q.GetPrediction(Targets.Target).CollisionObjects.Any()) { Vars.Q.Cast(Vars.Q.GetPrediction(target).UnitPosition); return; } } } /// <summary> /// The KillSteal R Logic. /// </summary> if (Vars.R.IsReady() && Vars.Menu["spells"]["r"]["killsteal"].GetValue <MenuBool>().Value) { foreach (var target in GameObjects.EnemyHeroes.Where( t => t.IsValidTarget(Vars.R.Range) && !t.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange()) && !Invulnerable.Check(t, DamageType.Magical, false) && Vars.GetRealHealth(t) < (float)GameObjects.Player.GetSpellDamage(t, SpellSlot.R))) { Vars.R.CastOnUnit(target); } } }
/// <summary> /// Fired when the game is updated. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void Clear(EventArgs args) { if (Bools.HasSheenBuff()) { return; } /// <summary> /// The Clear Q Logics. /// </summary> if (Vars.Q.IsReady()) { /// <summary> /// The JungleClear Q Logic. /// </summary> if (Targets.JungleMinions.Any() && GameObjects.Player.ManaPercent > ManaManager.GetNeededMana(Vars.Q.Slot, Vars.Menu["spells"]["q"]["jungleclear"]) && !Vars.AnyWall(GameObjects.Player.ServerPosition, Targets.JungleMinions[0].ServerPosition) && Vars.Menu["spells"]["q"]["jungleclear"].GetValue <MenuSliderButton>().BValue) { Vars.Q.Cast(Targets.JungleMinions[0].ServerPosition); } /// <summary> /// The LaneClear Q Logic. /// </summary> if (Targets.Minions.Any() && GameObjects.Player.ManaPercent > ManaManager.GetNeededMana(Vars.Q.Slot, Vars.Menu["spells"]["q"]["laneclear"]) && !Vars.AnyWall( GameObjects.Player.ServerPosition, (Vector3)Vars.Q.GetLineFarmLocation(Targets.Minions, Vars.Q.Width).Position) && Vars.Menu["spells"]["q"]["laneclear"].GetValue <MenuSliderButton>().BValue) { Vars.Q.Cast(Vars.Q.GetLineFarmLocation(Targets.Minions, Vars.Q.Width).Position); } } }