Advertisement
Guest User

PseudoCode Jinx E

a guest
Nov 18th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.45 KB | None | 0 0
  1.  private static void LogicE()
  2.         {
  3.             if (Player.Mana > RMANA + EMANA && getCheckBoxItem(eMenu, "autoE") && Game.Time - grabTime > 1)
  4.             {
  5.                 foreach (
  6.                     var enemy in
  7.                         Program.Enemies.Where(enemy => enemy.LSIsValidTarget(E.Range) && !CanMove(enemy)))
  8.                 {
  9.                     E.Cast(enemy.Position);
  10.                     return;
  11.                 }
  12.                 if (!Program.LagFree(1))
  13.                     return;
  14.  
  15.                 if (getCheckBoxItem(eMenu, "telE"))
  16.                 {
  17.                     var trapPos = GetTrapPos(E.Range);
  18.                     if (!trapPos.IsZero)
  19.                         E.Cast(trapPos);
  20.                 }
  21.  
  22.                 if (Program.Combo && Player.IsMoving && getCheckBoxItem(eMenu, "comboE") &&
  23.                     Player.Mana > RMANA + EMANA + WMANA)
  24.                 {
  25.                     var t = TargetSelector.GetTarget(E.Range, DamageType.Physical);
  26.                     if (t.LSIsValidTarget(E.Range) && E.GetPrediction(t).CastPosition.LSDistance(t.Position) > 200 &&
  27.                         (int)E.GetPrediction(t).Hitchance == 5)
  28.                     {
  29.                         E.CastIfWillHit(t, 2);
  30.                         if (t.HasBuffOfType(BuffType.Slow))
  31.                         {
  32.                             Program.CastSpell(E, t);
  33.                         }
  34.                         else
  35.                         {
  36.                             if (E.GetPrediction(t).CastPosition.LSDistance(t.Position) > 200)
  37.                             {
  38.                                 if (Player.Position.LSDistance(t.ServerPosition) > Player.Position.LSDistance(t.Position))
  39.                                 {
  40.                                     if (t.Position.LSDistance(Player.ServerPosition) <
  41.                                         t.Position.LSDistance(Player.Position))
  42.                                         Program.CastSpell(E, t);
  43.                                 }
  44.                                 else
  45.                                 {
  46.                                     if (t.Position.LSDistance(Player.ServerPosition) >
  47.                                         t.Position.LSDistance(Player.Position))
  48.                                         Program.CastSpell(E, t);
  49.                                 }
  50.                             }
  51.                         }
  52.                     }
  53.                 }
  54.             }
  55.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement