public static void On_Unkillable_Minion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args) { if (Config.LasthitMenu.GetValue("lh") > Player.Instance.ManaPercent || unit == null || Orbwalker.ActiveModes.Combo.IsActive()) { return; } if (args.RemainingHealth <= Damages.QDamage(unit) && Spells.Q.IsReady() && Config.LasthitMenu.Checked("Q")) { if (Spells.Q.IsInRange(unit)) { Spells.Q.Cast(unit); } else if (Spells.Q2.IsInRange(unit)) { var pred = Spells.Q2.GetPrediction(unit); pred.QExtend(); } } if (args.RemainingHealth <= Damages.WDamage(unit) && Spells.W.IsReady() && Config.LasthitMenu.Checked("W")) { Spells.W.Cast(unit); } if (args.RemainingHealth <= Damages.EDamage(unit) && Spells.E.IsReady() && Config.LasthitMenu.Checked("E")) { var Position = _E_.Intersection_Of_2Circle(Player.Instance.Position.To2D(), Spells.E.Range, unit.Position.To2D(), Player.Instance.GetAutoAttackRange(unit)); if (Position.Count() > 0) { Spells.E.Cast(Position.OrderBy(x => x.Distance(Game.CursorPos)).FirstOrDefault().To3DWorld()); } } }
public static void Killsteal(EventArgs args) { if (Spells.Q.IsReady() && Config.MiscMenu.Checked("Qks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.Q2.IsInRange(t) && t.Health <= Damages.QDamage(t)), DamageType.Physical); if (target != null && !target.Unkillable()) { if (Spells.Q.IsInRange(target)) { Spells.Q.Cast(target); } else if (Spells.Q2.IsInRange(target)) { var pred = Spells.Q2.GetPrediction(target); pred.QExtend(); } } } if (Spells.W.IsReady() && Config.MiscMenu.Checked("Wks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.W.IsInRange(t) && t.Health <= Damages.WDamage(t) && !t.Unkillable()), DamageType.Magical); if (target != null && !target.Unkillable()) { var pred = Spells.W.GetPrediction(target); Spells.W.Cast(pred.CastPosition); } } if (Spells.E.IsReady() && Config.MiscMenu.Checked("Eks")) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.E.IsInRange(t) && t.Health <= Damages.EDamage(t) && !t.Unkillable()), DamageType.Physical); if (target != null) { if (_E_.GetPos() != new Vector3() || _E_.GetPos() != Vector3.Zero) { Spells.E.Cast(_E_.GetPos()); } } } if (Spells.R.IsReady() && Config.MiscMenu.GetValue("Rks", false) > 0) { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.R.IsInRange(t) && t.Health <= Damages.RDamage(t, Config.MiscMenu.GetValue("Rkstick")) && !t.Unkillable()), DamageType.Physical); if (target != null) { var CanRKS = Config.MiscMenu.GetValue("Rks", false) == 1 ? true : (Spells.Q2.IsInRange(target) && Spells.Q.IsReady()) || (Spells.W.IsInRange(target) && Spells.W.IsReady()) || Spells.E.IsReady() || Player.Instance.IsInAutoAttackRange(target) ? false : true; if (CanRKS) { var pred = Spells.R.GetPrediction(target); Spells.R.Cast(pred.CastPosition); } } } }