private static void OnHarrass() { var Target = TargetSelector.GetTarget(Q.Range, DamageType.Physical); var Buuuuuu = ObjectManager.Get <Obj_AI_Minion>().FirstOrDefault(o => o.HasBuff("illaoiespirit")); var enemies = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range); if (Target != null && Buuuuuu == null) { if (Q.IsReady() && Target.IsValidTarget(Q.Range)) { foreach (var qenemies in enemies) { var useQ = IllaoiMenu.MyHarass["harass.q" + qenemies.ChampionName].Cast <CheckBox>().CurrentValue; if (useQ && Q.GetPrediction(qenemies).HitChancePercent >= IllaoiMenu.harassQH()) { Q.Cast(Q.GetPrediction(qenemies).CastPosition); } } } } if (Target == null && Buuuuuu != null) { if (IllaoiMenu.harassQ1() && Q.IsReady()) { if (Q.GetPrediction(Buuuuuu).HitChance >= HitChance.High) { Q.Cast(Q.GetPrediction(Buuuuuu).CastPosition); } } } if (E.IsReady() && Target.IsValidTarget(E.Range) && Player.ManaPercent >= IllaoiMenu.harassQE()) { foreach (var eenemies in enemies) { var useE = IllaoiMenu.MyHarass["harass.e" + eenemies.ChampionName].Cast <CheckBox>().CurrentValue; if (useE && E.GetPrediction(eenemies).HitChance >= HitChance.High) { if (!E.GetPrediction(eenemies).CollisionObjects.Any()) { E.Cast(E.GetPrediction(eenemies).CastPosition); } } } } }