private static void Orbwalker_OnPreAttack(EloBuddy.AttackableUnit target, EloBuddy.SDK.Orbwalker.PreAttackArgs args) { if (EloBuddy.SDK.Orbwalker.ActiveModesFlags.HasFlag(EloBuddy.SDK.Orbwalker.ActiveModes.Combo) && args.Target is EloBuddy.AIHeroClient && args.Target.Distance(EloBuddy.Player.Instance) > 400 && (W.IsReady() || E.IsReady() || Q.IsReady()) && BlockAA) { args.Process = false; } }
private static void Drawing_OnDraw(EventArgs args) { if (!myHero.IsDead) { if (drawe && E.IsReady()) { Drawing.DrawCircle(myHero.Position, E.Range, Color.Red); } if (drawr && R.IsReady()) { Drawing.DrawCircle(myHero.Position, R.Range, Color.Red); } var DrawCatchAxeRange = drawaxe; if (DrawCatchAxeRange) { Drawing.DrawCircle(Game.CursorPos, catchaxerange, Color.Red); } if (drawaxedrop) { foreach (var data in _axeDropObjectDataList.Where(x => x.Object.IsValid)) { var objectPos = Drawing.WorldToScreen(data.Object.Position); Drawing.DrawCircle(data.Object.Position, 120, _bestDropObject != null && _bestDropObject.IsValid ? data.Object.NetworkId == _bestDropObject.NetworkId ? Color.YellowGreen : Color.Gray : Color.Gray); //, 3); Drawing.DrawText(objectPos.X, objectPos.Y, _bestDropObject != null && _bestDropObject.IsValid ? data.Object.NetworkId == _bestDropObject.NetworkId ? Color.YellowGreen : Color.Gray : Color.Gray, ((float)(data.ExpireTime - Environment.TickCount) / 1000).ToString("0.0")); } } } }