/// <summary> /// Called on do-cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The args.</param> public static void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe) { /// <summary> /// Initializes the orbwalkingmodes. /// </summary> if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { if (AutoAttack.IsAutoAttack(args.SData.Name)) { Logics.Weaving(sender, args); return; } else { switch (args.SData.Name) { case "AkaliMota": if (Vars.R.IsReady() && Targets.Target.IsValidTarget(Vars.R.Range) && !Targets.Target.IsValidTarget(Vars.AARange) && Vars.getCheckBoxItem(Vars.RMenu, "combo") && Vars.getCheckBoxItem(Vars.WhiteListMenu, Targets.Target.ChampionName.ToLower())) { if (!Targets.Target.IsUnderEnemyTurret() || !Vars.getCheckBoxItem(Vars.MiscMenu, "safe")) { Vars.R.CastOnUnit(Targets.Target); } } break; default: break; } } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear)) { Logics.JungleClear(sender, args); } } }
/// <summary> /// Called on do-cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The args.</param> public static void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe) { /// <summary> /// Initializes the orbwalkingmodes. /// </summary> switch (Variables.Orbwalker.ActiveMode) { case OrbwalkingMode.Combo: if (AutoAttack.IsAutoAttack(args.SData.Name)) { Logics.Weaving(sender, args); break; } switch (args.SData.Name) { case "AkaliMota": if (Vars.R.IsReady() && Targets.Target.IsValidTarget(Vars.R.Range) && !Targets.Target.IsValidTarget(Vars.AaRange) && Vars.Menu["spells"]["r"]["combo"].GetValue <MenuBool>().Value && Vars.Menu["spells"]["r"]["whitelist"][Targets.Target.ChampionName.ToLower()] .GetValue <MenuBool>().Value) { if (!Targets.Target.IsUnderEnemyTurret() || !Vars.Menu["miscellaneous"]["safe"].GetValue <MenuBool>().Value) { Vars.R.CastOnUnit(Targets.Target); } } break; } break; case OrbwalkingMode.LaneClear: Logics.JungleClear(sender, args); break; } } }