public static void KillSteal() { foreach (var enemy in EntityManager.Heroes.Enemies) { if (enemy.IsDead || enemy.Health == 0 || enemy.IsZombie) { return; } if (BenchTheKench.QSpell.IsReady() && TahmDamage.QDamage(enemy) > enemy.Health && BenchTheKench.KillStealMenu["KillSteal.Q"].Cast <CheckBox>().CurrentValue) { BenchTheKench.QSpell.Cast(enemy); return; } if (BenchTheKench.WSpellSwallow.IsReady() && TahmDamage.WDamage(enemy) > enemy.Health && enemy.IsEmpowered() && BenchTheKench.KillStealMenu["KillSteal.W.Swallow"].Cast <CheckBox>().CurrentValue) { BenchTheKench.QSpell.Cast(enemy); return; } var pred = BenchTheKench.WSpellSpit.GetPrediction(enemy); if (KenchCheckManager.IsSwallowed() && BenchTheKench.KillStealMenu["KillSteal.W.Spit"].Cast <CheckBox>().CurrentValue&& TahmDamage.WPDamage(enemy) > enemy.Health) { BenchTheKench.WSpellSpit.Cast(enemy); return; } if (BenchTheKench.WSpellSwallow.IsReady() && TahmDamage.WPDamage(enemy) > enemy.Health && (!pred.CollisionObjects.Any() || pred.CollisionObjects.Count() == 1 && pred.CollisionObjects[0].IsMinion && pred.CollisionObjects[0].Distance(Player.Instance) <= 250) && enemy.IsEmpowered() && BenchTheKench.KillStealMenu["KillSteal.W.Spit"].Cast <CheckBox>().CurrentValue) { if (pred.CollisionObjects.Count() == 1 && pred.CollisionObjects[0].IsMinion) { BenchTheKench.WSpellSwallow.Cast(pred.CollisionObjects[0]); return; } if (pred.CollisionObjects.Any()) { continue; } var unit = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault( a => a.Distance(Player.Instance) <= 250); if (unit != null) { BenchTheKench.WSpellSwallow.Cast(unit); } } } }
public static void LastHit() { if (BenchTheKench.FarmingMenu["LastHit.Q"].Cast <CheckBox>().CurrentValue&& BenchTheKench.QSpell.IsReady()) { foreach ( var enemies in EntityManager.MinionsAndMonsters.EnemyMinions.Where( a => a.Distance(Player.Instance) <= 900 && a.Health <= TahmDamage.QDamage(a))) { if (BenchTheKench.QSpell.GetPrediction(enemies).HitChance >= HitChance.Medium) { BenchTheKench.QSpell.Cast(enemies); break; } } } }