public static void Orbwalker_OnPostAttack(AttackableUnit target, EventArgs args) { if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { return; } if (!(target is AIHeroClient)) { return; } if (Variables.Q.IsReady()) { Variables.Q.Cast(); } else if (Checker.HasItem()) { Checker.CastItem(); } else if (Variables.E.IsReady()) { var targetE = TargetSelector.GetTarget(Variables.E.Range, DamageType.Physical); if (Variables.E.IsReady() && targetE.IsValidCheck()) { Variables.E.Cast(targetE); } foreach (var tar in EntityManager.Heroes.Enemies.Where(x => x.IsValidCheck(Variables.E.Range))) { if (Variables.E.IsReady()) { Variables.E.Cast(tar); } } } }
public static void Orbwalker_OnPostAttack(AttackableUnit target, EventArgs args) { if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear)) { return; } if (Player.Instance.Mana < 5 || (Player.Instance.Mana == 5 && !Variables.JungSave.CurrentValue)) { if (Variables.JungQ.CurrentValue && Variables.Q.IsReady()) { Variables.Q.Cast(); } else { if (Variables.JungTiamat.CurrentValue && Checker.HasItem()) { Checker.CastItem(); } } } else { if (Variables.JungTiamat.CurrentValue && Checker.HasItem()) { Checker.CastItem(); } } }
private static void Dash_OnDash(Obj_AI_Base sender, Dash.DashEventArgs e) { if (!sender.IsMe) { return; } if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { return; } if (!Checker.HasItem() || Item.CanUseItem(3748)) { return; } if (!(Orbwalker.LastTarget is AIHeroClient)) { return; } if (!Checker.HasItem() || Item.CanUseItem(3748)) { return; } if (e.Duration - 100 - Game.Ping / 2 > 0) { Core.DelayAction(() => Checker.CastItem(), (int)(e.Duration - 100 - Game.Ping / 2)); } else { Checker.CastItem(); } }