Esempio n. 1
0
 public static void BeforeAttack(Orbwalker.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe && Program.Q.IsReady() && Program.ComboMenu.Item("QCombo").GetValue<bool>())
     {
         if (args.Target.IsValid<Obj_AI_Hero>())
         {
             var target = (Obj_AI_Hero) args.Target;
             if (Program.ComboMenu.Item("RCombo").GetValue<bool>() && Program.R.IsReady() &&
                 Program.Orbwalker.ActiveMode == MyOrbwalker.OrbwalkingMode.Combo)
             {
                 if (!target.UnderTurret(true))
                 {
                     Program.R.Cast();
                 }
             }
             if (target.IsMelee && target.IsFacing(Heroes.Player))
             {
                 if (target.Distance(Heroes.Player.ServerPosition) < 325)
                 {
                     var tumblePosition = target.GetTumblePos();
                     args.Process = false;
                     Tumble.Cast(tumblePosition);
                 }
             }
         }
     }
 }
Esempio n. 2
0
 public static void BeforeAttack(Orbwalker.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe || Program.Q.IsReady() || Program.ComboMenu.Item("QCombo").GetValue<bool>())
     {
         if (MyWizard.UltActive() && MyWizard.TumbleActive() && Program.EscapeMenu.Item("QUlt").GetValue<bool>() &&
             Heroes.EnemyHeroes.Any(h => h.IsMelee && h.Distance(Heroes.Player) < h.AttackRange + h.BoundingRadius))
         {
             args.Process = false;
         }
     }
 }