public static void Lasthit() { if (Player.Instance.ManaPercent >= Config.LasthitMenu["lhmanage"].Cast <Slider>().CurrentValue) { if (Config.LaneClear["useQlh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget(Spells.Q.Range) && m.Health <= Damages.QDamage(m)).FirstOrDefault(); if (minion != null) { Spells.Q.Cast(minion); } } if (Config.LaneClear["useWlh"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady()) { var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget(Spells.W.Range) && m.Health <= Damages.WDamage(m)).FirstOrDefault(); if (minion != null) { Spells.W.Cast(minion); } } if (Config.LaneClear["useElh"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady()) { var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget(Spells.E.Range) && m.Health <= Damages.EDamage(m)).FirstOrDefault(); if (minion != null) { Spells.E.Cast(minion); } } } }
public static void Killsteal(EventArgs args) { if (Spells.Q.IsReady() && Config.MiscMenu["Qks"].Cast <CheckBox>().CurrentValue) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.Q.IsInRange(t) && t.Health <= Damages.QDamage(t)), DamageType.Magical); if (target != null && Extensions.Unkillable(target) == false) { // var pred = Spells.Q.GetPrediction(target); // Spells.Q.Cast(pred.CastPosition); predd.CastPredictedSpell(SpellSlot.Q, 1000, SkillShotType.Linear, .250f, 1700, 100, target, false, false); } } if (Spells.W.IsReady() && Config.MiscMenu["Wks"].Cast <CheckBox>().CurrentValue) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.W.IsInRange(t) && t.Health <= Damages.WDamage(t) && !Extensions.Unkillable(t)), DamageType.Magical); if (target != null) { Spells.W.Cast(target); } } if (Spells.E.IsReady() && Config.MiscMenu["Eks"].Cast <CheckBox>().CurrentValue) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.E.IsInRange(t) && t.Health <= Damages.EDamage(t) && !Extensions.Unkillable(t)), DamageType.Magical); if (target != null) { Spells.E.Cast(target); } } }
public static void LaneClear() { if (Player.Instance.ManaPercent < Config.LaneClear["lcmanage"].Cast <Slider>().CurrentValue) { return; } if (!Config.LaneClear["logiclc"].Cast <CheckBox>().CurrentValue) { if (Config.LaneClear["useQlc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget(Spells.Q.Range) && Spells.Q.IsInRange(m)).FirstOrDefault(); { if (minion != null) { Spells.Q.Cast(minion); } } } if (Config.LaneClear["useWlc"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady()) { var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget(Spells.W.Range) && Spells.W.IsInRange(m)).FirstOrDefault(); { if (minion != null) { Spells.W.Cast(minion); } } } if (Config.LaneClear["useElc"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady()) { var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget(Spells.E.Range) && Spells.E.IsInRange(m)).FirstOrDefault(); { if (minion != null) { Spells.E.Cast(minion); } } } } else { var WorstPos = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy), 300f, (int)Spells.E.Range); var minionnear = EntityManager.MinionsAndMonsters.EnemyMinions.OrderBy(m => m.Distance(WorstPos.CastPosition)).FirstOrDefault(); if (Config.LaneClear["useQlc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { if (Extensions.CountminionEbuff >= Config.LaneClear["Qlc"].Cast <Slider>().CurrentValue) { var minion = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy).Where(m => m.HasBuff("RyzeE")).FirstOrDefault(); Spells.Q.Cast(minion); } } if (Config.LaneClear["useWlc"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady()) { if (Extensions.MinionHasEBuff != null && Extensions.MinionHasEBuff.Health <= Damages.WDamage(Extensions.MinionHasEBuff)) { Spells.W.Cast(Extensions.MinionHasEBuff); } } if (Config.LaneClear["Elc"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady()) { if (Extensions.MinionHasEBuff == null && Extensions.MinionEDie == null) { Spells.E.Cast(minionnear); } if (Extensions.MinionHasEBuff != null) { Spells.E.Cast(Extensions.MinionHasEBuff); } if (Extensions.MinionEDie != null) { Spells.E.Cast(Extensions.MinionEDie); } } } }