//Lasthit public static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args) { if (Player.Instance.ManaPercent < Config.LasthitMenu["LhManager"].Cast <Slider>().CurrentValue) { return; } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit)) { if (Config.LasthitMenu["useQLh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady()) { if (args.RemainingHealth < Damages.QDamage(target) && target.IsValidTarget(Spells.Q.Range)) { Spells.Q.Cast(target); } } } if (Config.LasthitMenu["useWLh"].Cast <CheckBox>().CurrentValue) { if (args.RemainingHealth < Player.Instance.GetAutoAttackDamage(target) && Player.Instance.IsInAutoAttackRange(target)) { Spells.W.Cast(); Player.IssueOrder(GameObjectOrder.AttackTo, target); } } }
private static Obj_AI_Base MinionQLh(GameObjectType type, AttackSpell spell) { return(EntityManager.MinionsAndMonsters.EnemyMinions.OrderBy(a => a.Health).FirstOrDefault (a => a.IsEnemy && a.Type == type && a.Distance(Sivir) <= Spells.Q.Range && !a.IsDead && !a.IsInvulnerable && a.IsValidTarget(Spells.Q.Range) && a.Health <= Damages.QDamage(a))); }
//KillSteal public static void Killsteal() { if (!Config.MiscMenu["useQKS"].Cast <CheckBox>().CurrentValue&& !Spells.Q.IsReady()) { return; } { var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null && t.IsValidTarget() && Spells.Q.IsInRange(t) && t.Health <= Damages.QDamage(t)), DamageType.Physical); if (target != null && Event.Unkillable(target) == false) { var pred = Spells.Q.GetPrediction(target); { Spells.Q.Cast(pred.CastPosition); } } } }