private static void JungleClear() { var JungleMinions = MinionManager.GetMinions(Player.ServerPosition, W.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth); if (JungleMinions.Count >= 1) { foreach (var Mob in JungleMinions) { if (Human()) { if (Option_Item("Jungle R") && R.IsReady()) { if (!Q.IsReady() && !W.IsReady()) { if (((_spideQcd == 0) && (_spideWcd <= 1.8f)) || (_humaQcd >= 1.2f)) { R.Cast(true); } } } if (Player.ManaPercent >= Option.Item("JMana").GetValue <Slider>().Value) { if (Option_Item("Human Jungle W") && W.IsReady()) { var Mobs = W.GetCircularFarmLocation(JungleMinions); if (JungleMinions.Count == 4) { if (Mobs.MinionsHit >= 3) { W.Cast(Mobs.Position, true); } } if (JungleMinions.Count == 3) { if (Mobs.MinionsHit >= 2) { W.Cast(Mobs.Position, true); } } ; if (JungleMinions.Count <= 2) { W.Cast(Mob.Position, true); } if (JungleMinions.Count == 0) { return; } } if (Option_Item("Human Jungle Q") && Q.IsReady()) { Q.CastOnUnit(Mob, true); } } } if (Spider()) { if (Option_Item("Jungle R") && R.IsReady()) { if (!Q2.IsReady() && !W2.IsReady() && !Player.HasBuff("EliseSpiderW") && (Player.ManaPercent >= Option.Item("JMana").GetValue <Slider>().Value)) { if ((_humaQcd <= 0f) && (_humaWcd <= 1.5f) && ((_spideQcd >= 1.4f) || (_spideWcd >= 1.8f)) && (((JungleMinions.Count == 1) && (Mob.Health >= Q.GetDamage(Mob))) || (Mob.Health >= W.GetDamage(Mob)))) { R.Cast(true); } } } if (Option_Item("Spider Jungle Q") && Q.IsReady()) { Q.CastOnUnit(Mob, true); } if (Option_Item("Spider Jugnle W") && W2.IsReady()) { var JungleMinion = MinionManager.GetMinions(Player.ServerPosition, 150, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth); if (!Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { if (JungleMinion != null) { W2.Cast(true); } } } } } } if (JungleMinions == null) { return; } }
private static void LaneClear() { var Minions = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, W.Range, MinionTypes.All, MinionTeam.NotAlly); if (Minions != null) { if (Human() && (Player.ManaPercent >= Option.Item("LMana").GetValue <Slider>().Value)) { if (Option_Item("Human Lane W") && W.IsReady()) { var farmLocation = W.GetLineFarmLocation(Minions); if (farmLocation.MinionsHit >= 3) { W.Cast(farmLocation.Position, true); } } if (Option_Item("Human Lane Q") && Q.IsReady()) { var Minion = MinionManager.GetMinions(Q.Range, MinionTypes.All, MinionTeam.NotAlly) .Where(x => x.Health < W.GetDamage(x)) .OrderByDescending(x => x.MaxHealth) .ThenByDescending(x => x.Distance(Player)) .FirstOrDefault(); if (Minion != null) { Q.Cast(Minion, true); } } } if (Spider()) { if (Option_Item("Spider Lane Q") && Q2.IsReady()) { var Minion = MinionManager.GetMinions(Q2.Range, MinionTypes.All, MinionTeam.NotAlly) .Where(x => x.Health < W.GetDamage(x)) .OrderByDescending(x => x.MaxHealth) .ThenByDescending(x => x.Distance(Player)) .FirstOrDefault(); if (Minion != null) { Q2.Cast(Minion, true); } } if (Option_Item("Spider Lane W") && W2.IsReady()) { var Minion = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, 150, MinionTypes.All, MinionTeam.NotAlly); if (!Orbwalking.CanAttack() && Orbwalking.CanMove(10) && (Minion != null)) { W2.Cast(true); } } } } if (Minions == null) { return; } }