private void Clear() { var perc = getSliderItem(menuLC, "minmana") / 100f; if (player.Mana < player.MaxMana * perc) { return; } var bestPosition = WSkillShot.GetLineFarmLocation( MinionManager.GetMinions( ObjectManager.Player.ServerPosition, WSkillShot.Range, MinionTypes.All, MinionTeam.NotAlly)); if (W.IsReady() && !SomebodyInYou && getCheckBoxItem(menuLC, "usewLC") && bestPosition.MinionsHit >= getSliderItem(menuLC, "wMinHit") && !justQ) { var mini = MinionManager.GetMinions(W.Range, MinionTypes.All, MinionTeam.NotAlly) .OrderBy(e => e.Health) .FirstOrDefault(); if (mini != null) { lastWtarget = Team.Minion; W.CastOnUnit(mini, true); } } if (W.IsReady() && getCheckBoxItem(menuLC, "usewLC") && MinionInYou) { WSkillShot.Cast(bestPosition.Position, getCheckBoxItem(config, "packets")); } }
private void Clear() { float perc = config.Item("minmana", true).GetValue <Slider>().Value / 100f; if (player.Mana < player.MaxMana * perc) { return; } MinionManager.FarmLocation bestPosition = WSkillShot.GetLineFarmLocation( MinionManager.GetMinions( ObjectManager.Player.ServerPosition, WSkillShot.Range, MinionTypes.All, MinionTeam.NotAlly)); if (W.IsReady() && !SomebodyInYou && config.Item("usewLC", true).GetValue <bool>() && bestPosition.MinionsHit >= config.Item("wMinHit", true).GetValue <Slider>().Value&& !justQ) { var mini = MinionManager.GetMinions(W.Range, MinionTypes.All, MinionTeam.NotAlly) .OrderBy(e => e.Health) .FirstOrDefault(); if (mini != null) { lastWtarget = Team.Minion; W.CastOnUnit(mini, true); } } if (W.IsReady() && config.Item("usewLC", true).GetValue <bool>() && MinionInYou) { WSkillShot.Cast(bestPosition.Position, config.Item("packets").GetValue <bool>()); } }