/// <summary> /// Crescents this instance. /// </summary> private void Crescent() { var target = TargetSelector.GetTarget( Menu.Item("QRange").GetValue <Slider>().Value, TargetSelector.DamageType.Magical); if (target == null) { return; } Variables.Spells[SpellSlot.Q].Cast(qLogic.QPred(target)); }
public void OnDraw(EventArgs args) { if (Variables.Player.IsDead) { return; } var target = TargetSelector.GetTarget(825, TargetSelector.DamageType.Magical); if (target != null && target.IsVisible) { Render.Circle.DrawCircle(qLogic.QPred(target), 50, Color.Aqua); } }
private void OnUpdate(EventArgs args) { var target = HeroManager.Enemies.FirstOrDefault( x => !x.IsDead && x.IsValidTarget(Menu.Item("QRange").GetValue <Slider>().Value)); if (Menu.Item("QMana").GetValue <Slider>().Value > Variables.Player.ManaPercent) { return; } if (target != null && target.Health < qLogic.GetDmg(target)) { Variables.Spells[SpellSlot.Q].Cast(qLogic.QPred(target)); } }
private void PaleCascade() { var target = TargetSelector.GetTarget( Menu.Item("Range").GetValue <Slider>().Value, TargetSelector.DamageType.Magical); if (target == null || !target.IsValid) { return; } if (Variables.Spells[SpellSlot.Q].IsReady() && Variables.Spells[SpellSlot.R].IsReady() && target.Distance(Variables.Player) >= 500) { Variables.Spells[SpellSlot.R].Cast(target); } Variables.Spells[SpellSlot.Q].Cast(qLogic.QPred(target)); }