internal static void Combo() { var target = TargetSelector.GetTarget(1000); if (target == null) { return; } if (MyMenu.IsChecked("Combo.Q")) { AutoQonEnemyPath(); } Logics.Harass(MyMenu.IsChecked("Combo.Q"), MyMenu.IsChecked("Combo.W"), MyMenu.IsChecked("Combo.E"), true); if (Calculation.isFleeing(target) && MyMenu.IsChecked("Combo.W")) { MySpells.W.Cast(((target.ServerPosition - Singed.Player.Position) / target.Distance(Singed.Player)) * MySpells.W.Range); } if (Calculation.dmgCalc(target, (1000 - target.Distance(Singed.Player)) / target.MovementSpeed) >= target.Health && MyMenu.IsChecked("Combo.R")) { MySpells.R.Cast(); } }
private static void Drawing_OnDraw(EventArgs args) { PoisonPath.Draw(); foreach (var e in ObjectManager.Heroes.All) { if (Calculation.isFleeing(e)) { TextObj("Fleeing", e, SharpDX.Color.Red); } else { TextObj("no", e, SharpDX.Color.Green); } } var target = TargetSelector.GetTarget(850); if (target == null) { return; } Drawing.DrawCircle(Player.Position, 400, SharpDX.Color.Gold); Drawing.DrawCircle(target.ServerPosition, 20, SharpDX.Color.Red, 20); Drawing.DrawCircle(MySpells.getELandingPos(target.ServerPosition), 20, SharpDX.Color.DarkViolet, 20); }