Пример #1
0
        static void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo | orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                var useW  = GetValueMenuBool("Combo.W");
                var useWh = GetValueMenuBool("Harass.W");

                if ((useW || useWh) && W.IsReady() && target.IsEnemy && target.IsValidTarget(W.Range))
                {
                    W.Cast();
                    lastW = Environment.TickCount;
                    player.IssueOrder(GameObjectOrder.AttackTo, target);
                }

                if (Tiamat.IsInRange(target.Position) && Tiamat.IsReady() && Tiamat.IsOwned())
                {
                    Tiamat.Cast();
                }

                if (Hydra.IsInRange(target.Position) && Hydra.IsReady() && Hydra.IsOwned())
                {
                    Hydra.Cast();
                }
            }
        }