Пример #1
0
        public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            if (!W.IsReady())
            {
                return;
            }

            if (GetValue <bool>("Misc.UseW.Turret") && args.Target is Obj_AI_Turret)
            {
                if (((Obj_AI_Turret)args.Target).Health >= Player.TotalAttackDamage * 3)
                {
                    W.Cast();
                }
            }

            if (GetValue <bool>("Misc.UseW.Inhibitor") && args.Target is Obj_BarracksDampener)
            {
                if (((Obj_BarracksDampener)args.Target).Health >= Player.TotalAttackDamage * 3)
                {
                    W.Cast();
                }
            }

            if (GetValue <bool>("Misc.UseW.Nexus") && args.Target is Obj_HQ)
            {
                W.Cast();
            }
        }
Пример #2
0
 public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (GetValue <bool>("Combo.E.Use") && E.IsReady() && HaveAmmo1 && !HaveAmmo2 && !isReloading)
     {
         var enemy = HeroManager.Enemies.FirstOrDefault(e => e.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65));
         if (enemy != null)
         {
             E.Cast(CommonUtils.GetDashPosition(E, enemy, 200));
         }
     }
 }
Пример #3
0
 public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (!args.Unit.IsMe)
     {
         return;
     }
     if (ObjectManager.Player.HasBuff("LucianR"))
     {
         args.Process = false;
     }
 }
Пример #4
0
 public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     foreach (
         var target in
             HeroManager.Enemies.Where(
                 e =>
                     e.IsValid && e.Distance(ObjectManager.Player) < Orbwalking.GetRealAutoAttackRange(null) + 65 &&
                     e.IsVisible).Where(target => target.HasBuff("kindredcharge")))
     {
         Orbwalker.ForceTarget(target);
     }
 }
Пример #5
0
        public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
        {
            args.Process = !GetValue <KeyBind>("Combo.Insec").Active;

            if (GetValue <bool>("Misc.UseQ.Inhibitor") && args.Target is Obj_BarracksDampener && Q.IsReady())
            {
                if (((Obj_BarracksDampener)args.Target).Health >= Player.TotalAttackDamage * 3)
                {
                    Q.Cast();
                }
            }

            if (GetValue <bool>("Misc.UseQ.Nexus") && args.Target is Obj_HQ && Q.IsReady())
            {
                Q.Cast();
            }

            var unit = args.Target as Obj_AI_Turret;

            if (unit != null)
            {
                if (GetValue <bool>("UseEM") && E.IsReady())
                {
                    if (((Obj_AI_Turret)args.Target).Health >= Player.TotalAttackDamage * 3)
                    {
                        E.CastOnUnit(unit);
                    }
                }

                if (GetValue <bool>("Misc.UseQ.Turret") && Q.IsReady())
                {
                    if (((Obj_AI_Turret)args.Target).Health >= Player.TotalAttackDamage * 3)
                    {
                        Q.Cast();
                    }
                }
            }

            if (Q.IsReady() && args.Target is AIHeroClient)
            {
                var t = args.Target as AIHeroClient;
                if (t.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) - 65) && ComboActive)
                {
                    Q.Cast();
                }
            }
        }
Пример #6
0
 public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     /*
      * var minion = args.Target as Obj_AI_Minion;
      * if (minion != null && LaneClearActive)
      * {
      *  var mobs =
      *      MinionManager.GetMinions(ObjectManager.Player.Position, Orbwalking.GetRealAutoAttackRange(null) + 65,
      *          MinionTypes.All, MinionTeam.Enemy).Count(m => m.Distance(minion) < 155);
      *  if (mobs < 2 && FishBoneActive)
      *  {
      *      args.Process = false;
      *      Q.Cast();
      *  }
      * }
      */
 }
Пример #7
0
 public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     args.Process = !Q.IsCharging;
 }
Пример #8
0
 public virtual void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
 }