private static void KillSteal() { foreach ( var enemy in EntityManager.Heroes.Enemies.Where( e => e.Distance(Player) <= Q.Range && e.IsValidTarget() && !e.IsInvulnerable)) { if (IreliaTheTrollMenu.KillstealQ() && Q.IsReady() && SpellDamage.QDamage(enemy) >= enemy.Health && enemy.Distance(Player) <= Q.Range) { Q.Cast(enemy); } if (IreliaTheTrollMenu.KillstealE() && E.IsReady() && SpellDamage.EDamage(enemy) >= enemy.Health && enemy.Distance(Player) <= E.Range) { E.Cast(enemy); } if (IreliaTheTrollMenu.killstealR() && R.IsReady() && SpellDamage.RDamage(enemy) >= enemy.Health && enemy.Distance(Player) <= R.Range) { R.Cast(enemy); } } }
public override void Execute() { if (Settings.UseE && SpellManager.E.IsReady()) { var minionE = EntityManager.MinionsAndMonsters.EnemyMinions .FirstOrDefault(m => m.IsEnemy && m.IsValidTarget(SpellManager.E.Range) && (m.Health <= SpellDamage.EDamage(m))); if (minionE != null && !minionE.GetAfterEPos().Tower()) { SpellManager.E.Cast(minionE); } } if (Settings.UseQ && SpellManager.Q.IsReady() && !Player.Instance.HasQ3()) { var minionQ = EntityManager.MinionsAndMonsters.EnemyMinions .FirstOrDefault(m => m.IsEnemy && m.IsValidTarget(SpellManager.Q.Range) && m.Health <= SpellDamage.QDamage(m)); if (minionQ != null) { SpellManager.Q.Cast(minionQ); } } if (Settings.UseQ3 && Player.Instance.HasQ3() && SpellManager.Q.IsReady()) { var minionQ3 = EntityManager.MinionsAndMonsters.EnemyMinions .FirstOrDefault(m => m.IsEnemy && m.IsValidTarget(SpellManager.Q.Range) && m.Health <= SpellDamage.QDamage(m)); if (minionQ3 != null) { SpellManager.Q.Cast(minionQ3); } } }