protected override void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (!args.Unit.IsMe) { return; } if (!(args.Target is Obj_AI_Hero)) { return; } if (args.Target.IsValid <Obj_AI_Hero>()) { var t = (Obj_AI_Hero)args.Target; if (t == null) { return; } if (t.IsMelee() && t.IsFacing(Player) && t != null && ComboMenu.Item("QCombo").GetValue <bool>()) { if (t.Distance(Player.ServerPosition) < Q.Range && Q.IsReady() && t.IsFacing(Player) && !Player.ServerPosition.Extend(t.ServerPosition, -(Q.Range)).IsShroom()) { args.Process = false; Q.Cast(Player.ServerPosition.Extend(t.ServerPosition, -(Q.Range))); } } var minion = MinionManager.GetMinions(Player.ServerPosition, Orbwalking.GetRealAutoAttackRange(null)).OrderBy(m => m.Armor).FirstOrDefault(); if (minion == null) { return; } if (Items.HasItem((int)ItemId.Thornmail, t) && !Items.HasItem((int)ItemId.The_Bloodthirster, Player) && Player.HealthPercent < 25 && t.HealthPercent > 15 && t.VayneWStacks() != 2 && t.IsFacing(Player)) { Orbwalker.ForceTarget(minion); } } }
protected virtual void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { }