public static void KillSteal() { var Q = Program.Q; var W = Program.W; var E = Program.E; var R = Program.R; foreach (var enemy in EntityManager.Heroes.Enemies.Where(a => !a.IsDead && !a.IsZombie && a.Health > 0)) { if (enemy.IsValidTarget(R.Range) && enemy.HealthPercent <= 40) { if (DamageLib.ECalc(enemy) + DamageLib.ECalc(enemy) + DamageLib.RCalc(enemy) >= enemy.Health) { if (Program.ModesMenu1["KQ"].Cast <CheckBox>().CurrentValue&& (DamageLib.ECalc(enemy) >= enemy.Health) && Q.IsInRange(enemy) && Q.IsReady()) { Q.Cast(Q.GetPrediction(enemy).CastPosition); Program.CastedQ = true; } if (Program.ModesMenu1["KE"].Cast <CheckBox>().CurrentValue&& (DamageLib.ECalc(enemy) >= enemy.Health) && E.IsInRange(enemy) && E.IsReady()) { R.Cast(enemy); } if (Program.ModesMenu1["KR"].Cast <CheckBox>().CurrentValue&& (DamageLib.RCalc(enemy) >= enemy.Health) && R.IsInRange(enemy) && R.IsReady()) { R.Cast(enemy); } } } } }
public static void LastHit() { var Q = Program.Q; var W = Program.W; var E = Program.E; var R = Program.R; var qminions = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(Program.Q.Range) && (DamageLib.QCalc(m) > m.Health)); var eminions = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget(Program.E.Range) && (DamageLib.ECalc(m) > m.Health)); var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(t => t.IsInRange(Player.Instance.Position, Program.E.Range) && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count(); if (qminions == null) { return; } var prediction = Program.Q.GetPrediction(qminions); if (Q.IsReady() && Program.Q.IsInRange(qminions) && Program.ModesMenu2["LastQ"].Cast <CheckBox>().CurrentValue&& qminions.Health < DamageLib.QCalc(qminions)) { Q.Cast(Q.GetPrediction(qminions).CastPosition); } Program.CastedQ = true; if (Program.E.IsReady() && Program.E.IsInRange(eminions) && Program.ModesMenu2["LastE"].Cast <CheckBox>().CurrentValue&& eminions.Health < DamageLib.ECalc(eminions)) { E.Cast(eminions); } }