private void HandleWHarass(AIHeroClient target) { if (W.IsReady() && MinionInYou && WSkillShot.CanCast(target)) { WSkillShot.CastIfHitchanceEquals(target, HitChance.High, getCheckBoxItem(config, "packets")); } if (W.IsReady() && !SomebodyInYou && WSkillShot.CanCast(target) && player.LSDistance(target) > getSliderItem(menuC, "usewminiRange")) { 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); } } }
private void HandleWHarass(Obj_AI_Hero target) { if (W.IsReady() && MinionInYou && WSkillShot.CanCast(target)) { WSkillShot.CastIfHitchanceEquals(target, HitChance.High, config.Item("packets").GetValue <bool>()); } if (W.IsReady() && !SomebodyInYou && WSkillShot.CanCast(target) && player.Distance(target) > config.Item("usewminiRange", true).GetValue <Slider>().Value) { 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); } } }