Ejemplo n.º 1
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            //SkinManager.Update();

            if (_player.IsDead)
            {
                return;
            }
            if (Config.Item("UltCancel").GetValue <bool>())
            {
                if (_player.HasBuff("katarinarsound", true) && Utility.CountEnemysInRange((int)R.Range) == 0)
                {
                    IssueMoveComand();
                }
            }
            if (_player.HasBuff("katarinarsound", true))
            {
                LXOrbwalker.SetMovement(false);
                LXOrbwalker.SetAttack(false);
            }
            if (!_player.HasBuff("katarinarsound", true) && !IsChanneling)
            {
                Count = 0;
                LXOrbwalker.SetMovement(true);
                LXOrbwalker.SetAttack(true);
            }
            if (IsChanneling)
            {
                return;
            }
            var useWa = Config.Item("AlwaysW").GetValue <bool>() && W.IsReady();

            switch (LXOrbwalker.CurrentMode)
            {
            case LXOrbwalker.Mode.Combo:
                Combo();
                break;

            case LXOrbwalker.Mode.Lasthit:
                Farm();
                break;

            case LXOrbwalker.Mode.Harass:
                Harras();
                break;

            case LXOrbwalker.Mode.LaneClear:
                WaveClear();
                break;
            }
            Escape();
            if (useWa)
            {
                AlwaysW();
            }
            SmartKs();
        }
Ejemplo n.º 2
0
        static void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || args.SData.Name != "KatarinaR")
            {
                return;
            }
            IsChanneling = true;
            LXOrbwalker.SetMovement(false);

            LXOrbwalker.SetAttack(false);
            Utility.DelayAction.Add(1, () => IsChanneling = false);
        }