Beispiel #1
0
        /*
         * OnDash
         */

        private static void OnDash(Obj_AI_Base sender, Dash.DashEventArgs args)
        {
            var target = TargetSelector.GetTarget(R.Range, DamageType.Physical); // 1500?

            if (target == null || !target.IsValidTarget())
            {
                return;
            }
            if (sender.IsMe && onCombo)
            {
                var cType = Misc.getSliderValue(ComboMenu, "cPrio");
                if (Ferocity == 5)
                {
                    if (cType == 1 && _Player.IsDashing())
                    {
                        Casts.useQ(target);
                    }
                    if (cType == 0 && _Player.IsDashing())
                    {
                        Casts.useE(target);
                    }
                }
                if (Ferocity < 5)
                {
                    if (E.IsReady() && _Player.IsDashing())
                    {
                        Casts.useE(target);
                        Player.IssueOrder(GameObjectOrder.AttackUnit, target);
                    }
                    if (Q.IsReady() && _Player.IsDashing())
                    {
                        Casts.useQ(target);
                        Player.IssueOrder(GameObjectOrder.AttackUnit, target);
                    }
                    if (W.IsReady() && _Player.IsDashing())
                    {
                        Casts.useW(target);
                        Player.IssueOrder(GameObjectOrder.AttackUnit, target);
                        Items.useHydra(target);
                    }
                }
            }
        }