protected override void KillSteal() { foreach (var enemy in UnitManager.ValidEnemyHeroes.Where(h => h.HealthPercent <= 40f)) { var Minion = EntityManager.Heroes.Enemies.Where(it => it.IsValidTarget(Q.Range)).FirstOrDefault(it => EntityManager.MinionsAndMonsters.EnemyMinions.Any(minion => minion.Distance(it) <= 450)); var result = GetBestCombo(enemy); var targetQ = TargetSelector.GetTarget(Q.Range, DamageType.Physical); var targetW = TargetSelector.GetTarget(W.Range, DamageType.Mixed); var targetR = TargetSelector.GetTarget(R.Range, DamageType.Physical); if (KillStealMenu.CheckBox("Q") && (result.Q || Q.IsKillable(enemy)) && Q.IsReady && targetQ.IsValidTarget(Q.Range) && !IsCastingR) { CastQ(enemy); } if (KillStealMenu.CheckBox("Qmin") && (result.Q || Q.IsKillable(enemy)) && Minion != null && Q.IsReady && !IsCastingR) { CastQ(Minion); } if (KillStealMenu.CheckBox("W") && (result.W || W.IsKillable(enemy)) && W.IsReady && targetW.IsValidTarget(W.Range) && !IsCastingR) { CastW(enemy); } if (KillStealMenu.CheckBox("E") && (result.E || E.IsKillable(enemy)) && E.IsReady && !IsCastingR) { CastE(enemy); } if (KillStealMenu.CheckBox("R") && IsCastingR && enemy.TotalShieldHealth() <= GetCurrentShotDamage(enemy) && targetR.IsValidTarget(R.Range) && !targetR.IsValidTarget(W.Range) && R.IsReady) { CastR(); } } base.KillSteal(); }
protected override void KillSteal() { foreach (var enemy in UnitManager.ValidEnemyHeroesInRange.Where(h => h.HealthPercent <= 40f)) { var result = GetBestCombo(enemy); if (KillStealMenu.CheckBox("Q") && (result.Q || Q.IsKillable(enemy))) { CastQ(enemy); } if (KillStealMenu.CheckBox("W") && (result.W || W.IsKillable(enemy))) { CastW(enemy); } if (KillStealMenu.CheckBox("E") && (result.E || E.IsKillable(enemy))) { CastE(enemy); } if (KillStealMenu.CheckBox("R") && (result.R || R.IsKillable(enemy))) { CastR(enemy); } if ((KillStealMenu.CheckBox("Q") || KillStealMenu.CheckBox("E")) && ( result.Q || Q.IsKillable(enemy) || result.W || W.IsKillable(enemy) || result.R || R.IsKillable(enemy) ) ) { ThrowBall(enemy); } } base.KillSteal(); }
protected virtual void KillSteal() { foreach (var enemy in UnitManager.ValidEnemyHeroesInRange) { if (KillStealMenu.CheckBox("Ignite") && Ignite.IsKillable(enemy)) { if (!MyHero.InAutoAttackRange(enemy) || MyHero.GetAttackDamage(enemy, true) <= enemy.TotalShieldHealth()) { Ignite.Cast(enemy); } } if (KillStealMenu.CheckBox("Smite") && Smite.IsKillable(enemy)) { Smite.Cast(enemy); } } }
protected override void KillSteal() { foreach (var enemy in UnitManager.ValidEnemyHeroesInRange.Where(h => h.HealthPercent <= 40f)) { var result = GetBestCombo(enemy); if (KillStealMenu.CheckBox("Q") && (result.Q || Q.IsKillable(enemy))) { CastQ(enemy); } if (KillStealMenu.CheckBox("W") && enemy.HealthPercent <= 20f && (result.W || W.IsKillable(enemy))) { W.Cast(enemy); } if (KillStealMenu.CheckBox("E") && (result.E || E.IsKillable(enemy))) { E.Cast(enemy); } } base.KillSteal(); }
protected override void KillSteal() { foreach (var enemy in UnitManager.ValidEnemyHeroesInRange.Where(h => h.HealthPercent <= 40f)) { var result = GetBestCombo(enemy); if (KillStealMenu.CheckBox("Q") && (result.Q || Q.IsKillable(enemy))) { CastQ(enemy); } if (KillStealMenu.CheckBox("W") && (result.W || W.IsKillable(enemy))) { CastW(enemy); } if (KillStealMenu.CheckBox("E") && (result.E || E.IsKillable(enemy))) { CastE(enemy); } if (KillStealMenu.CheckBox("R") && IsCastingR && R.GetDamage(enemy) * Stacks >= enemy.TotalShieldHealth()) { R.Cast(enemy); } } base.KillSteal(); }