public override void JungleClear() { var mob = new Obj_AI_Minion(); if (Qtarget() != null && Qtarget() is Obj_AI_Minion && JungleClearMenu.checkbox("Q2")) { mob = Qtarget() as Obj_AI_Minion; } else if (Q.IsReady() && JungleClearMenu.checkbox("Q1") && SpellsManager.Q1) { mob = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderBy(m => m.Distance(user)).ThenByDescending(m => m.MaxHealth).FirstOrDefault(m => m.IsKillable(Q.Range)); } else if (E.IsReady() && (JungleClearMenu.checkbox("E1") || JungleClearMenu.checkbox("E2"))) { mob = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderBy(m => m.Distance(user)).ThenByDescending(m => m.MaxHealth).FirstOrDefault(m => m.IsKillable(E.Range)); } else { mob = EntityManager.MinionsAndMonsters.GetJungleMonsters() .OrderBy(m => m.Distance(user)) .ThenByDescending(m => m.MaxHealth) .FirstOrDefault(m => m.IsKillable(user.GetAutoAttackRange() + 20)); } if (mob == null) { return; } if (Passive <= JungleClearMenu.slider("Passive") || SpellsManager.lastspelltimer > 3000) { if (W.IsReady() && mob.IsKillable(E.Range) && ((JungleClearMenu.checkbox("W1") && SpellsManager.W1) || JungleClearMenu.checkbox("W2"))) { SpellsManager.W(user, JungleClearMenu.checkbox("W1"), JungleClearMenu.checkbox("W2")); return; } if (E.IsReady() && mob.IsKillable(E.Range) && ((JungleClearMenu.checkbox("E1") && SpellsManager.E1) || JungleClearMenu.checkbox("E2"))) { SpellsManager.E(mob, JungleClearMenu.checkbox("E1"), JungleClearMenu.checkbox("E2")); return; } if (Q.IsReady() && mob.IsKillable(Q.Range) && ((JungleClearMenu.checkbox("Q1") && SpellsManager.Q1) || JungleClearMenu.checkbox("Q2"))) { SpellsManager.Q(mob, JungleClearMenu.checkbox("Q1"), JungleClearMenu.checkbox("Q2")); return; } } }