Пример #1
0
 private static void KillSteal()
 {
     if (MainMenu["KillSteal"]["Q"] && Q.IsReady())
     {
         var targets =
             Variables.TargetSelector.GetTargets(Q.Range + Q.Width / 2 + RangeTarget, Q.DamageType)
             .Where(i => !IsKillByMark(i) && i.Health + i.PhysicalShield <= Q.GetDamage(i))
             .ToList();
         if (targets.Count > 0)
         {
             foreach (var target in targets)
             {
                 Q3.UpdateSourcePosition();
                 if (CastQKill(Q3, target))
                 {
                     break;
                 }
                 if (WShadowCanQ)
                 {
                     Q3.UpdateSourcePosition(wShadow.ServerPosition);
                     if (CastQKill(Q3, target))
                     {
                         break;
                     }
                 }
                 else if (IsCastingW)
                 {
                     Q3.UpdateSourcePosition(wMissile.EndPosition);
                     if (CastQKill(Q3, target))
                     {
                         break;
                     }
                 }
                 if (RShadowCanQ)
                 {
                     Q3.UpdateSourcePosition(rShadow.ServerPosition);
                     CastQKill(Q3, target);
                 }
             }
         }
     }
     if (MainMenu["KillSteal"]["E"] && E.IsReady())
     {
         CastE(true);
     }
 }
Пример #2
0
 private static void KillSteal()
 {
     if (getCheckBoxItem(ksMenu, "Q") && Q.IsReady())
     {
         var targets = EntityManager.Heroes.Enemies.Where(i => i.IsInRange(Player, Q.Range + Q.Width / 2 + RangeTarget) && !IsKillByMark(i) && i.Health + i.AttackShield <= Q.GetDamage(i)).ToList();
         if (targets.Count > 0)
         {
             foreach (var target in targets)
             {
                 if (CastQKill(Q, target))
                 {
                     return;
                 }
                 if (WShadowCanQ)
                 {
                     Q3.UpdateSourcePosition(wShadow.ServerPosition, wShadow.ServerPosition);
                     if (CastQKill(Q3, target))
                     {
                         return;
                     }
                 }
                 else if (IsCastingW)
                 {
                     Q3.UpdateSourcePosition(wMissile.EndPosition, wMissile.EndPosition);
                     if (CastQKill(Q3, target))
                     {
                         return;
                     }
                 }
                 if (RShadowCanQ)
                 {
                     Q3.UpdateSourcePosition(rShadow.ServerPosition, rShadow.ServerPosition);
                     CastQKill(Q3, target);
                 }
             }
         }
     }
     if (getCheckBoxItem(ksMenu, "E") && E.IsReady())
     {
         CastE(true);
     }
 }