Beispiel #1
0
        /// <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 && (AutoAttack.IsAutoAttack(args.SData.Name) || args.Slot.Equals(SpellSlot.Q)))
             * {
             *
             *  if (!Vars.Q.IsReady() && GameObjects.Player.Spellbook.GetSpell(SpellSlot.Q).Level > 0
             *      && GameObjects.Player.Spellbook.GetSpell(SpellSlot.E).Level == 0)
             *  {
             *      //Vars.E.Cast(Game.CursorPos);
             *      ObjectManager.Player.Spellbook.CastSpell(SpellSlot.E, Game.CursorPos);
             *  }
             * }
             */
            if (sender.IsMe && AutoAttack.IsAutoAttack(args.SData.Name))
            {
                /// <summary>
                ///     Initializes the orbwalkingmodes.
                /// </summary>
                switch (Variables.Orbwalker.ActiveMode)
                {
                case OrbwalkingMode.Combo:
                    Logics.Weaving(sender, args);
                    break;

                case OrbwalkingMode.LaneClear:
                    Logics.JungleClear(sender, args);
                    Logics.BuildingClear(sender, args);
                    break;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        ///     Called on do-cast.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="GameObjectProcessSpellCastEventArgs" /> instance containing the event data.</param>
        public static void OnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (sender.IsMe && AutoAttack.IsAutoAttack(args.SData.Name))
            {
                switch (Variables.Orbwalker.ActiveMode)
                {
                case OrbwalkingMode.Combo:
                    Logics.Weaving(sender, args);
                    break;

                case OrbwalkingMode.LaneClear:
                    Logics.JungleClear(sender, args);
                    Logics.BuildingClear(sender, args);
                    break;
                }
            }
        }
Beispiel #3
0
        /// <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 &&
                AutoAttack.IsAutoAttack(args.SData.Name))
            {
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    Logics.Weaving(sender, args);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    Logics.JungleClear(sender, args);
                    Logics.BuildingClear(sender, args);
                }
            }
        }
Beispiel #4
0
        /// <summary>
        ///     Called on orbwalker action.
        /// </summary>
        /// <param name="sender">The object.</param>
        /// <param name="args">The <see cref="OrbwalkingActionArgs" /> instance containing the event data.</param>
        public static void OnAction(object sender, OrbwalkingActionArgs args)
        {
            switch (args.Type)
            {
            case OrbwalkingType.OnAttack:
                switch (Variables.Orbwalker.ActiveMode)
                {
                case OrbwalkingMode.Combo:
                    Logics.Weaving(sender, args);
                    break;

                case OrbwalkingMode.LaneClear:
                    Logics.JungleClear(sender, args);
                    Logics.BuildingClear(sender, args);
                    break;
                }
                break;
            }
        }