public override void Harass() { var Qtarget = Q.GetTarget(); var Wtarget = W.GetTarget(); var Etarget = E.GetTarget(); if (SelectBall(Etarget) == null) { Etarget = EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(t => (BallsList.Any() ? BallsList.Any(b => b.IsInRange(t, Eball.Range) && E.IsInRange(b)) : t.IsKillable(1200)) && t.IsKillable()); } if (Etarget != null && Q.IsReady() && E.IsReady() && HarassMenu.CheckBoxValue("QE") && HarassMenu.CompareSlider("Emana", user.ManaPercent)) { QE(Etarget); } if (Wtarget != null && W.IsReady() && Wtarget.IsKillable(W.Range) && HarassMenu.CheckBoxValue(SpellSlot.W) && HarassMenu.CompareSlider("Wmana", user.ManaPercent)) { WCast(Wtarget); return; } if (Qtarget != null && Q.IsReady() && Qtarget.IsKillable(Q.Range) && HarassMenu.CheckBoxValue(SpellSlot.Q) && HarassMenu.CompareSlider("Qmana", user.ManaPercent)) { Q.Cast(Qtarget, 30); return; } if (Etarget != null && E.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent)) { if (SelectBall(Etarget) != null && E.IsInRange(SelectBall(Etarget))) { Eball.Cast(SelectBall(Etarget)); return; } if (Etarget.IsKillable(E.Range) && user.HealthPercent <= 20) { E.Cast(Etarget, 25); } } }
public override void Combo() { var Qtarget = Q.GetTarget(); var Wtarget = W.GetTarget(); var Etarget = E.GetTarget(); var Rtarget = EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(t => t.IsKillable(R.Range) && RDamage(t) >= t.TotalShieldHealth()); if (SelectBall(Etarget) == null) { Etarget = EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(t => (BallsList.Any() ? BallsList.Any(b => b.IsInRange(t, Eball.Range) && E.IsInRange(b)) : t.IsKillable(1200)) && t.IsKillable()); } var FullCombotarget = EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(e => ComboDamage(e, true) >= e.TotalShieldHealth() && e.IsKillable(R.Range)); if (W.Handle.ToggleState != 1 && Wtarget != null && W.IsReady() && Wtarget.IsKillable(W.Range)) { W.Cast(Wtarget); } if (FullCombotarget != null && FullCombotarget.IsKillable()) { if (Q.IsReady() && FullCombotarget.IsKillable(Q.Range) && ComboMenu.CheckBoxValue(SpellSlot.Q) && user.Mana >= Q.Mana() + W.Mana() + E.Mana() + R.Mana()) { Q.Cast(FullCombotarget, 45); } if (E.IsReady() && ComboMenu.CheckBoxValue(SpellSlot.E) && user.Mana >= W.Mana() + E.Mana() + R.Mana()) { if (SelectBall(FullCombotarget) != null && E.IsInRange(SelectBall(FullCombotarget))) { Eball.Cast(SelectBall(FullCombotarget)); return; } if (FullCombotarget.IsKillable(E.Range)) { E.Cast(FullCombotarget, 25); return; } } if (W.IsReady() && FullCombotarget.IsKillable(W.Range) && ComboMenu.CheckBoxValue(SpellSlot.W) && user.Mana >= W.Mana() + R.Mana()) { WCast(FullCombotarget); } if (R.IsReady() && FullCombotarget.IsKillable(R.Range) && ComboMenu.CheckBoxValue(SpellSlot.R) && !(Q.IsReady() && W.IsReady() && E.IsReady())) { R.Cast(FullCombotarget); } } if (E.IsReady() && Etarget != null && SelectBall(Etarget) != null && E.IsInRange(SelectBall(Etarget)) && ComboMenu.CheckBoxValue(SpellSlot.E)) { Eball.Cast(SelectBall(Etarget)); return; } if (Etarget != null && Q.IsReady() && E.IsReady() && ComboMenu.CheckBoxValue("QE")) { QE(Etarget); } if (Qtarget != null && Q.IsReady() && Qtarget.IsKillable(Q.Range) && ComboMenu.CheckBoxValue(SpellSlot.Q)) { Q.Cast(Qtarget, 30); } if (Etarget != null && E.IsReady() && ComboMenu.CheckBoxValue(SpellSlot.E)) { if (Etarget.IsKillable(E.Range) && user.HealthPercent <= 20) { E.Cast(Etarget, 25); return; } } if (Wtarget != null && W.IsReady() && Wtarget.IsKillable(W.Range) && ComboMenu.CheckBoxValue(SpellSlot.W)) { W.Cast(Wtarget); } if (R.IsReady() && Rtarget != null && ComboMenu.CheckBoxValue(SpellSlot.R)) { R.Cast(Rtarget); } }