private static void KillSteal() { foreach ( var enemy in EntityManager.Heroes.Enemies.Where( e => e.Distance(Player) <= Q.Range && e.IsValidTarget() && !e.IsInvulnerable)) { if (IreliaTheTrollMenu.KillstealQ() && Q.IsReady() && SpellDamage.QDamage(enemy) >= enemy.Health && enemy.Distance(Player) <= Q.Range) { Q.Cast(enemy); } if (IreliaTheTrollMenu.KillstealE() && E.IsReady() && SpellDamage.EDamage(enemy) >= enemy.Health && enemy.Distance(Player) <= E.Range) { E.Cast(enemy); } if (IreliaTheTrollMenu.killstealR() && R.IsReady() && SpellDamage.RDamage(enemy) >= enemy.Health && enemy.Distance(Player) <= R.Range) { R.Cast(enemy); } } }
private static void KillSteal() { var enemies = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent) .Where( a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range && !a.IsDead && !a.IsZombie && a.HealthPercent <= 35); foreach ( var target in enemies) { if (!target.IsValidTarget()) { return; } if (GravesTheTrollMeNu.KillstealQ() && Q.IsReady() && target.Health + target.AttackShield < SpellDamage.RDamage(target)) { Q.Cast(target.Position); } if (GravesTheTrollMeNu.KillstealR() && R.IsReady() && target.Health + target.AttackShield < Player.GetSpellDamage(target, SpellSlot.R)) { var predRKs = R.GetPrediction(target); if (predRKs.HitChance >= HitChance.High) { R.Cast(target.Position); } } } }