Beispiel #1
0
 private void beforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe && Q.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && config.Item("useqLC").GetValue <bool>() && !(args.Target is Obj_AI_Hero) && (args.Target.Health > 700))
     {
         Q.Cast(config.Item("packets").GetValue <bool>());
         player.IssueOrder(GameObjectOrder.AutoAttack, args.Target);
     }
 }
Beispiel #2
0
 private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (W.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear &&
         config.Item("usewLC", true).GetValue <bool>() &&
         args.Target.Health > player.GetAutoAttackDamage((Obj_AI_Base)args.Target, true) * 3)
     {
         W.Cast();
     }
 }
Beispiel #3
0
 private void BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe && Q.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear &&
         config.Item("useqLC", true).GetValue <bool>() &&
         Environment.Minion.countMinionsInrange(player.Position, 600f) >
         config.Item("qhitLC", true).GetValue <Slider>().Value)
     {
         Q.Cast();
         Orbwalking.ResetAutoAttackTimer();
         //player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
     }
 }
Beispiel #4
0
        private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            var target = args.Target as Obj_AI_Base;

            if (Q.IsReady() && target != null &&
                ((target is Obj_AI_Hero && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo &&
                  !target.HasBuffOfType(BuffType.Slow)) ||
                 target.Health < Q.GetDamage(target) + player.GetAutoAttackDamage(target)))
            {
                Q.Cast(config.Item("packets").GetValue <bool>());
            }
        }
Beispiel #5
0
        private void beforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            if (args.Unit.IsMe && W.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && config.Item("usew").GetValue <bool>() && args.Target is Obj_AI_Hero)
            {
                if ((player.Mana > 40 && !fury) || (Q.IsReady() && canBeOpWIthQ(player.Position)))
                {
                    return;
                }

                W.Cast(config.Item("packets").GetValue <bool>());
            }
        }
Beispiel #6
0
        private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            if (args.Unit.IsMe && stance == Stance.Phoenix && player.GetBuff("UdyrPhoenixStance").Count == 3)
            {
                justR2 = true;
                Utility.DelayAction.Add((int)(player.AttackDelay * 1000), () => justR2 = false);
            }
            if (!args.Unit.IsMe || !R.IsReady())
            {
                return;
            }
            var target =
                HeroManager.Enemies.FirstOrDefault(
                    h => h.Distance(player) < R2.Range && CombatHelper.IsFacing(player, h.Position, 45f));

            if (target != null && orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
            {
                Harass();
            }
        }
Beispiel #7
0
        private void beforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            if (args.Unit.IsMe && W.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo &&
                args.Target is Obj_AI_Hero && checkFuryMode(SpellSlot.W, (Obj_AI_Base)args.Target) &&
                config.Item("usew", true).GetValue <bool>())
            {
                if ((player.Mana > 40 && !fury) || (Q.IsReady() && canBeOpWIthQ(player.Position)))
                {
                    return;
                }

                W.Cast(config.Item("packets").GetValue <bool>());
                return;
            }
            if (args.Unit.IsMe && W.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed &&
                config.Item("usewH", true).GetValue <bool>() && args.Target is Obj_AI_Hero &&
                config.Item("useCH", true).GetValue <StringList>().SelectedIndex != 0)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
        }
Beispiel #8
0
        private void beforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            if (CanQ2)
            {
                return;
            }
            var target = args.Target as Obj_AI_Base;

            if (args.Unit.IsMe && Q.IsReady() && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear &&
                config.Item("useqLC", true).GetValue <bool>() && !(target is Obj_AI_Hero) && (args.Target.Health > 700))
            {
                Q.Cast();
                player.IssueOrder(GameObjectOrder.AutoAttack, target);
            }

            if (Q.IsReady() && target != null && config.Item("useqLH", true).GetValue <bool>() &&
                target.Health < Q.GetDamage(target) + player.GetAutoAttackDamage(target))
            {
                Q.Cast();
            }
        }
Beispiel #9
0
 private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
     {
         var mob = Jungle.GetNearest(player.Position);
         if (mob != null && config.Item("useqLCSteal").GetValue <bool>() && Q.IsReady() &&
             Q.GetDamage(mob) > mob.Health)
         {
             Q.Cast(config.Item("packets").GetValue <bool>());
         }
         if (mob != null && config.Item("useqbsmite").GetValue <bool>() && Q.IsReady() &&
             Jungle.SmiteReady(config.Item("useSmite").GetValue <KeyBind>().Active) &&
             Q.GetDamage(mob) + Jungle.smiteDamage(mob) > mob.Health)
         {
             Q.Cast(config.Item("packets").GetValue <bool>());
         }
     }
     if (args.Unit.IsMe && Q.IsReady() && config.Item("useq").GetValue <bool>() && args.Target is Obj_AI_Hero &&
         Q.GetDamage((Obj_AI_Base)args.Target) > args.Target.Health)
     {
         Q.Cast(config.Item("packets").GetValue <bool>());
     }
 }