private static void OnHarrass() { var enemiese = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= R.Range); var enemiesq = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range); var target = TargetSelector.GetTarget(1900, DamageType.Magical); if (!target.IsValidTarget()) { return; } if (E.IsReady() && target.IsValidTarget(E.Range) && PiuwPiuwMissile == null) { foreach (var eenemies in enemiese) { var useE = MariagiospaldaMenu.MyHarass["harass.E" + eenemies.ChampionName].Cast <CheckBox>().CurrentValue; var prede = E.GetPrediction(eenemies); if (useE) { if (prede.HitChance >= HitChance.High) { E.Cast(eenemies); } } } } if (Q.IsReady() && target.IsValidTarget(Q1.Range)) { ExtendedQ(); } if (target.IsValidTarget(Q.Range) && Player.ManaPercent >= MariagiospaldaMenu.HarassQE()) { foreach (var qenemies in enemiesq) { var useQ = MariagiospaldaMenu.MyHarass["harass.Q" + qenemies.ChampionName].Cast <CheckBox>().CurrentValue; if (useQ) { { var predq = Q.GetPrediction(target); if (predq.HitChance >= HitChance.High) { Q.Cast(predq.CastPosition); } } } } } }