Esempio n. 1
0
            public static void Orbwalker_OnPostAttack(AttackableUnit target, EventArgs args)
            {
                var orbtarget = target as Obj_AI_Base;

                if (orbtarget == null)
                {
                    return;
                }

                if (Common.orbmode(Orbwalker.ActiveModes.Combo))
                {
                    var useQ = ComboMenu.checkbox(Q.Slot.ToString()) && Q.IsReady();
                    if (!useQ)
                    {
                        return;
                    }

                    Logics.Qlogic(ComboMenu, orbtarget);
                }

                if (Common.orbmode(Orbwalker.ActiveModes.Harass))
                {
                    var useQ = HarassMenu.checkbox(Q.Slot.ToString()) && Q.IsReady();
                    if (!useQ)
                    {
                        return;
                    }

                    Logics.Qlogic(HarassMenu, orbtarget);
                }
            }
Esempio n. 2
0
        public override void Harass()
        {
            var target = Target();

            if (target == null || !target.IsKillable())
            {
                return;
            }

            var useQ = HarassMenu.checkbox(Q.Slot.ToString()) && target.IsKillable(Q.Range) && !target.IsKillable(user.GetAutoAttackRange()) && Q.IsReady() && Q.Mana(HarassMenu);
            var useW = HarassMenu.checkbox(W.Slot.ToString()) && target.IsKillable(W.Range) && W.IsReady() && W.Mana(HarassMenu);
            var useE = HarassMenu.checkbox(E.Slot.ToString()) && target.IsKillable(E.Range) && E.IsReady() && E.Mana(HarassMenu);

            if (useE)
            {
                E.Cast(target);
            }

            if (useW && W.Handle.ToggleState != 2)
            {
                W.Cast();
            }

            if (useQ)
            {
                Logics.Qlogic(HarassMenu, target);
            }
        }
Esempio n. 3
0
File: Brand.cs Progetto: jitart/adc
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range + 100, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            var Qready = HarassMenu.checkbox("Q") && Q.IsReady() && target.IsKillable(Q.Range) && Q.Mana(HarassMenu);

            var Wready = HarassMenu.checkbox("W") && W.IsReady() && target.IsKillable(W.Range) && W.Mana(HarassMenu);

            var Eready = HarassMenu.checkbox("E") && E.IsReady() && target.IsKillable(E.Range) && E.Mana(HarassMenu);

            if (Qready)
            {
                Qlogic(target);
            }

            if (Wready)
            {
                Wlogic(target);
            }

            if (Eready)
            {
                Elogic(target);
            }
        }
Esempio n. 4
0
        public override void Harass()
        {
            if (IsCastingR)
            {
                return;
            }

            var target = TargetSelector.GetTarget(Q.Range + 50, DamageType.Mixed);

            if (target == null || !target.IsKillable())
            {
                return;
            }

            var Qready = HarassMenu.checkbox("Q") && Q.Mana(HarassMenu) && Q.IsReady() && target.IsKillable(Q.Range);

            var Wready = HarassMenu.checkbox("W") && W.Mana(HarassMenu) && W.IsReady();

            var Eready = HarassMenu.checkbox("E") && E.Mana(HarassMenu) && E.IsReady() && target.IsKillable(E.Range);

            if (Wready)
            {
                W.Cast(target);
            }

            if (Qready)
            {
                Q.Cast(target, Q.hitchance(Menuini));
            }

            if (Eready)
            {
                E.Cast(target);
            }
        }
Esempio n. 5
0
        public override void Harass()
        {
            var Qmode = HarassMenu.combobox("qmode");

            if (QMissle != null && Qmode == 0 && EntityManager.Heroes.Enemies.Any(e => e.IsInRange(QMissle, Qsize) && e.IsKillable()))
            {
                Q.Cast(Game.CursorPos);
            }

            var target  = TargetSelector.GetTarget(1000, DamageType.Magical);
            var Wtarget = TargetSelector.GetTarget(W.Range, DamageType.Magical);

            var useQ = HarassMenu.checkbox(Q.Slot.ToString()) && target.IsKillable(Q.Range) && Q.IsReady() && Q.Mana(HarassMenu);
            var useW = HarassMenu.checkbox(W.Slot.ToString()) && W.IsReady() && W.Mana(HarassMenu);

            if (useQ)
            {
                if (Q.Handle.ToggleState != 2 && !target.IsKillable(250))
                {
                    if (Q.Handle.ToggleState != 2)
                    {
                        Q.Cast(target, Q.hitchance(Menuini));
                    }
                }

                if (QMissle != null && Q.Handle.ToggleState == 2 && Qmode == 1 && target.IsInRange(QMissle, Qsize))
                {
                    Q.Cast(Game.CursorPos);
                }
            }

            if (useW)
            {
                if (Wtarget != null)
                {
                    if (W.Handle.ToggleState != 2 && Wtarget.IsKillable(W.Range))
                    {
                        W.Cast();
                    }

                    if (W.Handle.ToggleState == 2 && Wtarget.IsKillable(W2.Range))
                    {
                        W.Cast();
                    }
                }

                if (Wtarget == null && W.Handle.ToggleState == 2)
                {
                    W.Cast();
                }
            }
        }
Esempio n. 6
0
 public override void Harass()
 {
     UseSpells(HarassMenu.checkbox("Q") && Q.Mana(HarassMenu), HarassMenu.checkbox("W") && W.Mana(HarassMenu), HarassMenu.checkbox("E") && E.Mana(HarassMenu));
 }