public static void Execute() { var target = TargetSelector.GetTarget(1700, DamageType.Magical); if (target == null || target.IsInvulnerable || target.MagicImmune) { return; } Core.DelayAction(delegate { if (target.IsValidTarget(E.Range) && E.IsReady() && ComboMenu.GetCheckBoxValue("eUse") && (Hitch.ShouldOverload(SpellSlot.E) || Player.Instance.Mana < 80)) { E.Cast(target.Position); } }, Edelay); Core.DelayAction(delegate { if (Player.Instance.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1) { E.Cast(target.Position); } }, Edelay); if (target.IsValidTarget(Q.Range) && Q.IsReady() && ComboMenu.GetCheckBoxValue("qUse") && Player.Instance.IsFacing(target) && (Hitch.ShouldOverload(SpellSlot.Q) || Player.Instance.Mana < 80)) { Q.Cast(); } if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse")) { W.Cast(); } var targetR = TargetSelector.GetTarget(R.Range, DamageType.Magical); if (targetR == null || targetR.IsZombie || targetR.HasUndyingBuff()) { return; } if (ComboMenu["rlog"].Cast <ComboBox>().CurrentValue == 0 && R.IsReady()) { if (targetR.IsMoving) { if (targetR.IsValidTarget(R.Range + 300)) { R.Cast(target.Position - target.MoveSpeed); } else { R.Cast(target.Position - target.MoveSpeed / 2); } } else if (R.IsReady() && targetR.IsValidTarget(R.Range + Q.Range) && ComboMenu["rlog"].Cast <ComboBox>().CurrentValue == 1 && !targetR.IsInRange(Player.Instance, E.Range) && !targetR.IsFacing(Player.Instance)) { if (ComboMenu.GetCheckBoxValue("rUse") && Prediction.Health.GetPrediction(targetR, R.CastDelay) <= SpellDamage.GetRealDamage(SpellSlot.R, targetR)) { Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR")); } else { Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR")); } } else if (ComboMenu["rlog"].Cast <ComboBox>().CurrentValue == 2 && R.IsReady()) { if (targetR.IsValidTarget(R.Range + Q.Range)) { var predr = R.GetPrediction(targetR); if (predr.HitChance >= HitChance.High) { R.Cast(predr.CastPosition - 40); } } else { var predictedHealth = Prediction.Health.GetPrediction(targetR, R.CastDelay + Game.Ping); var predr = R.GetPrediction(targetR); var rDamage = targetR.GetDamage(SpellSlot.R); if (predictedHealth <= rDamage) { R.Cast(predr.CastPosition); } } } } }
public static void Execute() { var target = TargetSelector.GetTarget(1700, DamageType.Magical); if (target == null || target.IsInvulnerable || target.MagicImmune) { return; } Core.DelayAction(delegate { if (target.IsValidTarget(E.Range) && E.IsReady() && ComboMenu.GetCheckBoxValue("eUse") && (Hitch.ShouldOverload(SpellSlot.E) || Player.Instance.Mana < 80)) { E.Cast(target); } }, Edelay); if (Player.Instance.Spellbook.GetSpell(SpellSlot.E).ToggleState == 1) { E.Cast(target.Position); } if (target.IsValidTarget(Q.Range) && Q.IsReady() && ComboMenu.GetCheckBoxValue("qUse") && Player.Instance.IsFacing(target) && (Hitch.ShouldOverload(SpellSlot.Q) || Player.Instance.Mana < 80)) { Q.Cast(); } if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse")) { W.Cast(); } var targetR = TargetSelector.GetTarget(R.Range, DamageType.Magical); if (targetR == null || targetR.IsZombie || targetR.HasUndyingBuff()) { return; } if (ComboMenu.GetCheckBoxValue("my") && R.IsReady()) { if (targetR.IsMoving) { if (targetR.IsValidTarget(R.Range + 1000)) { R.Cast(target.Position - target.MoveSpeed); } } else { R.Cast(target.Position + 550); } } if (R.IsReady() && targetR.IsValidTarget(R.Range) && ComboMenu.GetCheckBoxValue("mario") && !targetR.IsInRange(Player.Instance, E.Range) && !targetR.IsFacing(Player.Instance)) { if (KillStealMenu.GetCheckBoxValue("rUse") && Prediction.Health.GetPrediction(targetR, R.CastDelay) <= SpellDamage.GetRealDamage(SpellSlot.R, targetR)) { Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR")); } else { Hitch.CastR(targetR, MiscMenu.GetSliderValue("minR")); } } }