public static void Execute() { if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear) && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { return; } if (!Menu.Clear.E || !Spells.E.IsReady() || Player.Instance.HasBuff("GarenQ") || Player.Instance.HasBuff("GarenE")) { return; } var minionObj = ObjectManager.Get <Obj_AI_Minion>() .Where(minion => minion.IsValidTarget(Spells.E.Range) && !minion.IsAlly); var objAiMinions = minionObj as Obj_AI_Minion[] ?? minionObj.ToArray(); if (objAiMinions.Count() < 2) { return; } Utility.Debug("Used E on minions/mobs (Lane/Jungle Clear Mode)."); Spells.E.Cast(); }
public static void Execute() { if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { return; } if (Menu.Harass.Q && Spells.Q.IsReady()) { if (Menu.Misc.QAfterAa) { return; } var target = TargetSelector.GetTarget(700, DamageType.Physical); if (target.IsValidTarget(700) && target.PossibleToReachQ()) { Utility.Debug(string.Format("Used Q to attack {0} (Harass Mode).", target.ChampionName)); Spells.Q.Cast(); } } if (Menu.Harass.W && Spells.W.IsReady()) { foreach ( var enemy in EntityManager.Heroes.Enemies.Where( enemy => enemy.IsValidTarget() && enemy.IsInAutoAttackRange(Player.Instance) && enemy.IsFacing(Player.Instance))) { Utility.Debug(string.Format("Used W to defend from {0} (Harass Mode).", enemy.ChampionName)); Spells.W.Cast(); } } if (Menu.Harass.E && Spells.E.IsReady()) { if ((Menu.Harass.Q && Spells.Q.IsReady()) || Player.Instance.HasBuff("GarenQ") || Player.Instance.HasBuff("GarenE")) { return; } var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Physical); if (target.IsValidTarget(Spells.E.Range)) { Utility.Debug(string.Format("Used E to attack {0} (Harass Mode).", target.ChampionName)); Spells.E.Cast(); } } }
private static void Orbwalker_OnPostAttack(AttackableUnit target, EventArgs args) { if (!Spells.Q.IsReady()) { return; } var aiHeroClientQ = (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && Menu.Combo.Q) || (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && Menu.Harass.Q); if (aiHeroClientQ && Menu.Misc.QAfterAa) { Utility.Debug("Used Q on OnPostAttack Callback."); Spells.Q.Cast(); } }
public static void Execute() { if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { return; } if (Menu.Combo.Q && Spells.Q.IsReady()) { if (Menu.Misc.QAfterAa) { return; } var target = TargetSelector.GetTarget(700, DamageType.Physical); if (target.IsValidTarget(700) && target.PossibleToReachQ()) { Utility.Debug(string.Format("Used Q to attack {0} (Combo Mode).", target.ChampionName)); Spells.Q.Cast(); } } if (Menu.Combo.W && Spells.W.IsReady()) { foreach ( var enemy in EntityManager.Heroes.Enemies.Where( enemy => enemy.IsValidTarget() && enemy.IsInAutoAttackRange(Player.Instance) && enemy.IsFacing(Player.Instance))) { Utility.Debug(string.Format("Used W to defend from {0} (Combo Mode).", enemy.ChampionName)); Spells.W.Cast(); } } if (Menu.Combo.E && Spells.E.IsReady()) { if ((Menu.Combo.Q && Spells.Q.IsReady()) || Player.Instance.HasBuff("GarenQ") || Player.Instance.HasBuff("GarenE")) { return; } var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Physical); if (target.IsValidTarget(Spells.E.Range)) { Utility.Debug(string.Format("Used E to attack {0} (Combo Mode).", target.ChampionName)); Spells.E.Cast(); } } if (Menu.Combo.R && Spells.R.IsReady()) { var targets = EntityManager.Heroes.Enemies.Where( enemy => enemy.IsValidTarget(Spells.R.Range) && Menu.ComboMenu["R." + enemy.ChampionName].Cast <CheckBox>().CurrentValue&& enemy.Health < Damages.Spell.R.GetDamage(enemy)); foreach (var target in targets) { Utility.Debug(string.Format("Used R on {0} (Combo Mode).", target.ChampionName)); Spells.R.Cast(target); } } }