Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void LogicE()
- {
- if (Player.Mana > RMANA + EMANA && getCheckBoxItem(eMenu, "autoE") && Game.Time - grabTime > 1)
- {
- foreach (
- var enemy in
- Program.Enemies.Where(enemy => enemy.LSIsValidTarget(E.Range) && !CanMove(enemy)))
- {
- E.Cast(enemy.Position);
- return;
- }
- if (!Program.LagFree(1))
- return;
- if (getCheckBoxItem(eMenu, "telE"))
- {
- var trapPos = GetTrapPos(E.Range);
- if (!trapPos.IsZero)
- E.Cast(trapPos);
- }
- if (Program.Combo && Player.IsMoving && getCheckBoxItem(eMenu, "comboE") &&
- Player.Mana > RMANA + EMANA + WMANA)
- {
- var t = TargetSelector.GetTarget(E.Range, DamageType.Physical);
- if (t.LSIsValidTarget(E.Range) && E.GetPrediction(t).CastPosition.LSDistance(t.Position) > 200 &&
- (int)E.GetPrediction(t).Hitchance == 5)
- {
- E.CastIfWillHit(t, 2);
- if (t.HasBuffOfType(BuffType.Slow))
- {
- Program.CastSpell(E, t);
- }
- else
- {
- if (E.GetPrediction(t).CastPosition.LSDistance(t.Position) > 200)
- {
- if (Player.Position.LSDistance(t.ServerPosition) > Player.Position.LSDistance(t.Position))
- {
- if (t.Position.LSDistance(Player.ServerPosition) <
- t.Position.LSDistance(Player.Position))
- Program.CastSpell(E, t);
- }
- else
- {
- if (t.Position.LSDistance(Player.ServerPosition) >
- t.Position.LSDistance(Player.Position))
- Program.CastSpell(E, t);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement