static void Laneclear() { if (!(AIO_Func.getManaPercent(Player) > Menu.Item("LcMana", true).GetValue <Slider>().Value)) { return; } var Minions = MinionManager.GetMinions(Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Enemy); if (Minions.Count <= 0) { return; } if (Menu.Item("laneclearUseQ", true).GetValue <bool>() && Q.IsReady()) { foreach (var minion in Minions.Where(x => Q.IsKillable(x))) { var killcount = 0; foreach (var colminion in AIO_Func.getCollisionMinions(Player, Player.ServerPosition.Extend(minion.ServerPosition, Q.Range), Q.Delay, Q.Width, Q.Speed)) { if (Q.IsKillable(colminion)) { killcount++; } else { break; } } if (killcount >= Menu.Item("laneclearQnum", true).GetValue <Slider>().Value&& Q.GetPrediction(minion).Hitchance >= HitChance.Medium) { Q.Cast(minion.ServerPosition); break; } } } if (Menu.Item("laneclearUseE", true).GetValue <bool>() && E.IsReady()) { var minionkillcount = 0; foreach (var Minion in Minions.Where(x => x.IsValidTarget(E.Range) && E.IsKillable(x))) { minionkillcount++; } if (minionkillcount >= Menu.Item("laneclearEnum", true).GetValue <Slider>().Value) { E.Cast(); } } }