Exemplo n.º 1
0
        public static void OnPostAttack(object sender, PostAttackEventArgs args)
        {
            if (Game.TickCount - Extensions.LastQCastAttempt <= 340 + Game.Ping / 2)
            {
                Extensions.DidJustAuto = false;
                return;
            }

            Extensions.DidJustAuto = true;

            if (MenuConfig.BurstMode.Active)
            {
                Burst.OnProcessAutoAttack();
            }
            else
            {
                switch (Global.Orbwalker.Mode)
                {
                case OrbwalkingMode.Combo:
                    ComboManager.OnProcessAutoAttack();
                    break;

                case OrbwalkingMode.Mixed:
                    Harass.OnProcessAutoAttack();
                    break;

                case OrbwalkingMode.Laneclear:
                    if (args.Target.IsMinion)
                    {
                        Lane.OnProcessAutoAttack();
                        Jungle.OnProcessAutoAttack(args.Target as Obj_AI_Minion);
                    }
                    else if ((args.Target as Obj_AI_Base).IsBuilding() && SpellConfig.Q.Ready)
                    {
                        SpellConfig.Q.Cast(Global.Player.ServerPosition.Extend(args.Target.ServerPosition, 100));
                    }
                    break;
                }
            }
        }