private static void OnDoCastDelayedLC(AIBaseClientProcessSpellCastEventArgs args) { if (SP) { AAPassive = false; } else { AAPassive = Player.HasBuff("LucianPassiveBuff"); } if (args.Target is AIMinionClient && args.Target.IsValid) { if (Orbwalker.ActiveMode == OrbwalkerMode.LaneClear && Player.ManaPercent > LMinMana) { var Minions = GameObjects.GetMinions(Player.GetRealAutoAttackRange(), MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.Health); if (Minions[0].IsValid && Minions.Count != 0) { if (!LT) { return; } if (E.IsReady() && !AAPassive && LE) { E.Cast(Player.Position.Extend(Game.CursorPos, 70)); } if (Q.IsReady() && (!E.IsReady() || (E.IsReady() && !LE)) && LQ != 0 && !AAPassive) { var QMinions = GameObjects.GetMinions(Q.Range); var exminions = GameObjects.GetMinions(Q1.Range); foreach (var Minion in QMinions) { var QHit = new Geometry.Rectangle(Player.Position, Player.Position.Extend(Minion.Position, Q1.Range), Q1.Width); if (exminions.Count(x => !QHit.IsOutside(x.Position.ToVector2())) >= LQ) { Q.Cast(Minion); break; } } } if ((!E.IsReady() || (E.IsReady() && !LE)) && (!Q.IsReady() || (Q.IsReady() && LQ == 0)) && LW && W.IsReady() && !AAPassive) { W.Cast(Minions[0].Position); } } } } }
static void AutoUseQ() { if (Q.IsReady() && AutoQ && Player.ManaPercent > MinMana) { var extarget = TargetSelector.GetTarget(Q1.Range); var Minions = GameObjects.GetMinions(Q.Range); foreach (var Minion in Minions) { var QHit = new Geometry.Rectangle(Player.Position, Player.Position.Extend(Minion.Position, Q1.Range), Q1.Width); var QPred = Q1.GetSPrediction(extarget); if (!QHit.IsOutside(QPred.UnitPosition) && QPred.HitChance == HitChance.High) { Q.Cast(Minion); break; } } } }
private static void Harass() { if (Player.ManaPercent < HMinMana) { return; } if (Q.IsReady() && HEXQ) { var target = TargetSelector.GetTarget(Q1.Range); var Minions = GameObjects.GetMinions(Q.Range); foreach (var Minion in Minions) { var QHit = new Geometry.Rectangle(Player.Position, Player.Position.Extend(Minion.Position, Q1.Range), Q1.Width); var QPred = Q1.GetPrediction(target); if (!QHit.IsOutside(QPred.UnitPosition.ToVector2()) && QPred.Hitchance == HitChance.High) { Q.Cast(Minion); break; } } } }
static void LaneClear() { if (Player.ManaPercent < LMinMana) { return; } if (Q.IsReady() && LHQ) { var extarget = TargetSelector.GetTarget(Q1.Range); var Minions = MinionManager.GetMinions(Q.Range); foreach (var Minion in Minions) { var QHit = new Geometry.Rectangle(Player.Position, Player.Position.Extend(Minion.Position, Q1.Range), Q1.Width); var QPred = Q1.GetPrediction(extarget); if (!QHit.IsOutside(QPred.UnitPosition.ToVector2()) && QPred.Hitchance == HitChance.High) { Q.Cast(Minion); break; } } } }