private static void JunuClear() { var farmjungclear = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(x => x.IsValidTarget(Fiddle.GetAutoAttackRange())).ToList(); if (!farmjungclear.Any()) { return; } string[] monsters = { "SRU_Gromp", "SRU_Blue", "SRU_Red", "SRU_Razorbeak", "SRU_Krug", "SRU_Murkwolf", "Sru_Crab", "SRU_RiftHerald", "SRU_Dragon", "SRU_Baron" }; if (Q.IsReady() && JungleMenu["Q"].Cast <CheckBox>().CurrentValue&& Fiddle.ManaPercent >= JungleMenu["JmanaP"].Cast <Slider>().CurrentValue&& farmjungclear.Count(x => monsters.Contains(x.BaseSkinName, StringComparer.CurrentCultureIgnoreCase)) >= 1) { Q.Cast(); } if (!W.IsReady() || !JungleMenu["W"].Cast <CheckBox>().CurrentValue || !(Fiddle.ManaPercent >= JungleMenu["JmanaP"].Cast <Slider>().CurrentValue)) { return; } { var farmjungclearW = farmjungclear.FirstOrDefault(x => monsters.Contains(x.BaseSkinName, StringComparer.CurrentCultureIgnoreCase)); if (farmjungclearW == null || !(farmjungclearW.Health > Fiddle.GetAutoAttackDamage(farmjungclearW, true) * 2)) { return; } var pred = W.GetHealthPrediction(farmjungclearW); } }
public static void JungleClearE() { if (!E.IsReady() || !Config.jungleclearMenu["ylm.jungleclear.usee"].Cast <CheckBox>().CurrentValue) { return; } var minion = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Monster, EntityManager.UnitTeam.Both, ObjectManager.Player.ServerPosition, E.Range ).FirstOrDefault(m => CanCastE(m) && E.GetHealthPrediction(m) > 0); if (minion == null) { return; } E.Cast(minion); }