public static bool IsIsolated(this Obj_AI_Minion target) { if (EntityManager.MinionsAndMonsters.GetJungleMonsters().Contains(target)) { return(EntityManager.MinionsAndMonsters.GetJungleMonsters().Count(m => m.IsValidTarget() && m.IsInRange(target, 500)) <= 1); } return(target.CountEnemyHeroesInRangeWithPrediction(500) <= 1 && target.CountEnemyMinionsInRangeWithPrediction(500) == 0 && !target.IsUnderEnemyturret()); }