private static void AIBaseClient_OnProcessSpellCast(AIBaseClient sender, AIBaseClientProcessSpellCastEventArgs args) { if (args.SData.Name.ToLower().Contains("itemtiamatcleave") && sender.IsMe) { Orbwalk.ResetAutoAttack(); } }
private static void OnAfterAttack(object sender, OrbwalkerActionArgs args) { if (args.Type != OrbwalkerType.AfterAttack) { return; } var target = TargetSelector.GetTarget(W.Range, DamageType.True); var Wcombo = WMenu["Combo"].GetValue <MenuBool>().Enabled; if (args.Target == null || args.Target.IsDead || !args.Target.IsValidTarget() || Orbwalker.ActiveMode == OrbwalkerMode.None || args.Target.Type != GameObjectType.AIHeroClient) { return; } if (target != null) { if (Orbwalker.ActiveMode == OrbwalkerMode.Combo) { if (Wcombo) { if (WMenu["AAr"].GetValue <MenuBool>().Enabled) { if (W.Cast()) { Orbwalk.ResetAutoAttack(); ObjectManager.Player.IssueOrder(GameObjectOrder.AttackUnit, target); } } } if (QMenu["Combo"].GetValue <MenuBool>().Enabled&& (QMenu["QAA"].GetValue <MenuBool>().Enabled&& Q.IsReady()) && !W.IsReady()) { Q.Cast(); } } } }