Exemplo n.º 1
0
        public static void OnUpdate()
        {
            try
            {
                if (Global.Player.IsDead || Global.Orbwalker.IsWindingUp)
                {
                    return;
                }

                switch (Global.Orbwalker.Mode)
                {
                case OrbwalkingMode.Combo:
                    Combo.OnUpdate();
                    break;

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

                case OrbwalkingMode.Laneclear:
                    Lane.OnUpdate();
                    Jungle.OnUpdate();
                    break;

                case OrbwalkingMode.None:
                    Extensions.AllIn = false;
                    break;
                }

                if (!SpellConfig.Q.Ready || Extensions.CurrentQCount == 1 || !MenuConfig.Miscellaneous["Active"].Enabled || Global.Player.HasBuff("Recall") ||
                    Global.Orbwalker.Mode == OrbwalkingMode.Laneclear || Global.Orbwalker.Mode == OrbwalkingMode.Lasthit ||
                    Game.TickCount - Extensions.LastQCastAttempt < 3400 + Game.Ping / 2 ||
                    Game.TickCount - Extensions.LastQCastAttempt > 3700 + Game.Ping / 2)
                {
                    return;
                }

                var path = Global.Player.Path.FirstOrDefault();
                Global.Orbwalker.Move(path);
                SpellConfig.Q.Cast(path); // f**k this shit.
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }