private static void Combo() { if (SpellFactory.W.IsReady() && Config.ReturnBoolMenu("Combo", "UseW")) { SpellFactory.CastW(); } if (SpellFactory.E.IsReady() && Config.ReturnBoolMenu("Combo", "UseE")) { SpellFactory.CastE(); } if (SpellFactory.Q.IsReady() && Config.ReturnBoolMenu("Combo", "UseQ")) { var target = TargetSelector.GetTarget(1000, DamageType.Magical); if (target.IsValidTarget(SpellFactory.Q.Range) && !target.IsZombie && !target.IsInvulnerable) { SpellFactory.CastQ(target); } } if (SpellFactory.R.IsReady()) { SpellFactory.CastR(); } if (Program.bIgnite && SpellFactory.Ignite.IsReady() && Config.ReturnBoolMenu("Combo", "UseIgnite")) { SpellFactory.UseIgnite(); } }
private static void KillSteal() { if (!Config.ReturnBoolMenu("Combo", "KillSteal")) { return; } foreach (AIHeroClient target in EntityManager.Heroes.Enemies.Where(x => !x.IsZombie && !x.IsInvulnerable && x.IsValidTarget(1600))) { if (target.Health < Program._Player.GetSpellDamage(target, SpellSlot.Q)) { if (Config.ReturnBoolMenu("Combo", "KillStealE") && target.IsValidTarget(SpellFactory.E.Range)) { SpellFactory.E.Cast(target); } if (Config.ReturnBoolMenu("Combo", "KillStealQ") && target.IsValidTarget(SpellFactory.Q.Range)) { SpellFactory.CastQ(target); } else if (Config.ReturnBoolMenu("Combo", "KillStealQE") && target.IsValidTarget(SpellFactory.Q2.Range)) { SpellFactory.CastQ2(target); } } } }
private static void Harass() { if (Program._Player.ManaPercent <= Config.ReturnIntMenu("Harras", "HarrasManaSlider")) { return; } if (SpellFactory.E.IsReady() && Config.ReturnBoolMenu("Harras", "HarrasE")) { SpellFactory.CastE(); } if (SpellFactory.Q.IsReady() && Config.ReturnBoolMenu("Harras", "HarrasQ")) { var target = TargetSelector.GetTarget(1600, DamageType.Magical); if (target.IsValidTarget(SpellFactory.Q.Range) && !target.IsZombie && !target.IsInvulnerable) { SpellFactory.CastQ(target); } else if (target.IsValidTarget(1600) && Config.ReturnBoolMenu("Harras", "HarrasQE") && !target.IsZombie && !target.IsInvulnerable) { SpellFactory.CastQ2(target); } } }