Advertisement
Guest User

PseudoCOde Jinx R

a guest
Nov 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.33 KB | None | 0 0
  1.  private static void LogicR()
  2.         {
  3.             if (Player.UnderTurret(true) && getCheckBoxItem(rMenu, "Rturrent"))
  4.                 return;
  5.             if (Game.Time - WCastTime > 0.9 && getCheckBoxItem(rMenu, "autoR"))
  6.             {
  7.                 foreach (
  8.                     var target in
  9.                         Program.Enemies.Where(target => target.LSIsValidTarget(R.Range) && ValidUlt(target) && target.IsHPBarRendered && target.IsVisible))
  10.                 {
  11.                     var predictedHealth = target.Health - GetIncomingDamage(target);
  12.                     var Rdmg = R.GetDamage(target, 1);
  13.  
  14.                     if (Rdmg > predictedHealth && !IsSpellHeroCollision(target, R) &&
  15.                         GetRealDistance(target) > bonusRange() + 200)
  16.                     {
  17.                         if (GetRealDistance(target) > bonusRange() + 300 + target.BoundingRadius &&
  18.                             target.CountAlliesInRange(600) == 0 && Player.CountEnemiesInRange(400) == 0)
  19.                         {
  20.                             castR(target);
  21.                         }
  22.                         else if (target.CountEnemiesInRange(200) > 2)
  23.                         {
  24.                             R.Cast(target, true, true);
  25.                         }
  26.                     }
  27.                 }
  28.             }
  29.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement