/// <summary> /// Harass Mode /// </summary> public static void Harass() { if (Player.ManaPercent < Menu.Item("HarassManaManager").GetValue <Slider>().Value) { return; } var harassq = Menu.Item("HarassQ").GetValue <bool>(); var harasse = Menu.Item("HarassE").GetValue <bool>(); var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical); if ((target == null) || !target.IsValidTarget()) { return; } if (Q.IsReady() && harassq) { Q.CastOnUnit(target); if (harasse && E.IsReady()) { E.CastOnUnit(target); Orbwalker.ForceTarget(target); } else { Orbwalker.ForceTarget(target); } } if (harasse && E.IsReady() && !Q.IsReady()) { if (target.IsValidTarget(E.Range)) { E.CastOnUnit(target); Orbwalker.ForceTarget(target); } } }
private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Target.Type == GameObjectType.obj_AI_Hero && Config.Item("focusP", true).GetValue <bool>() && args.Target.HealthPercent > 40) { var orbTarget = args.Target as Obj_AI_Hero; if (!orbTarget.HasBuff("quinnw")) { var best = Program.Enemies.FirstOrDefault(enemy => enemy.IsValidTarget() && Orbwalking.InAutoAttackRange(enemy) && enemy.HasBuff("quinnw")); if (best != null) { Orbwalker.ForceTarget(best); } } } else if (Program.LaneClear && args.Target.Type == GameObjectType.obj_AI_Minion && Config.Item("farmP", true).GetValue <bool>()) { var bestMinion = MinionManager.GetMinions(Player.Position, Player.AttackRange).FirstOrDefault(minion => minion.IsValidTarget() && Orbwalking.InAutoAttackRange(minion) && minion.HasBuff("quinnw")); if (bestMinion != null) { Orbwalker.ForceTarget(bestMinion); } } }
//Lane private static void Lane() { if ((Player.ManaPercent < Menu.Item("laneclearEMinimumMana").GetValue <Slider>().Value) || (Player.ManaPercent < Menu.Item("laneclearQMinimumMana").GetValue <Slider>().Value) || (Player.ManaPercent < Menu.Item("laneclearWMinimumMana").GetValue <Slider>().Value)) { return; } var infectedminion = MinionManager.GetMinions(Player.Position, E.Range) .Find(x => x.HasBuff("malzahare") && x.IsValidTarget(E.Range)); //var allMinions = Cache.GetMinions(ObjectManager.Player.ServerPosition, E.Range, MinionTeam.Enemy); //var allMinionsW = Cache.GetMinions(ObjectManager.Player.ServerPosition, 450f, MinionTeam.Enemy); var allMinions = MinionManager.GetMinions(E.Range, MinionTypes.All, MinionTeam.Enemy); var allMinionsW = MinionManager.GetMinions(450f, MinionTypes.All, MinionTeam.Enemy); if (allMinionsW.Count > 1) { if (infectedminion != null) // Replaced Sebby with Common { Orbwalker.ForceTarget(infectedminion); } else { Orbwalker.ForceTarget(null); } } if (allMinions.Count > Menu.Item("LaneClearEMinMinions").GetValue <Slider>().Value) { if (Menu.Item("laneclearE").GetValue <bool>() && E.IsReady()) { foreach (var minion in allMinions) { if (minion.IsValidTarget() && !minion.HasBuff("malzahare") && (minion.Health < E.GetDamage(minion))) { E.CastOnUnit(minion); } } } } if (Menu.Item("laneclearW").GetValue <bool>() && W.IsReady()) { foreach (var minion in allMinionsW) { if (minion.IsValidTarget()) { W.Cast(minion); } } } if (Menu.Item("laneclearQ").GetValue <bool>() && Q.IsReady()) { var allMinionsQ = MinionManager.GetMinions(Player.ServerPosition, Q.Range); var farmPos = Q.GetCircularFarmLocation(allMinionsQ, 150); if (farmPos.MinionsHit > Menu.Item("LaneClearMinions").GetValue <Slider>().Value) { Q.Cast(farmPos.Position); } } }