示例#1
0
 private static Obj_AI_Base MinionWlh(GameObjectType type, AttackSpell spell)
 {
     return(EntityManager.MinionsAndMonsters.EnemyMinions.OrderBy(a => a.Health).FirstOrDefault
                (a => a.IsEnemy &&
                a.Type == type &&
                a.Distance(Kennen) <= Spells.W.Range &&
                !a.IsDead &&
                !a.IsInvulnerable &&
                a.IsValidTarget(Spells.W.Range) &&
                a.Health <= Damages.WDamage(a)));
 }
示例#2
0
 //Lasthit
 public static void Orbwalker_OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
 {
     if (target == null || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
     {
         return;
     }
     if (args.RemainingHealth <= Damages.QDamage(target) && Config.LasthitMenu["useQLh"].Cast <CheckBox>().CurrentValue)
     {
         Spells.Q.Cast(target);
     }
     if (args.RemainingHealth <= Damages.WDamage(target) && Config.LasthitMenu["useWLh"].Cast <CheckBox>().CurrentValue&& target.HasBuff("kennenmarkofstorm"))
     {
         Spells.W.Cast();
     }
 }
示例#3
0
        public static void Killsteal()
        {
            if (Config.MiscMenu["useQKS"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                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)
                {
                    var pred = Spells.Q.GetPrediction(target);
                    if (pred.CollisionObjects.Length == 0)
                    {
                        Spells.Q.Cast(pred.CastPosition);
                    }
                }
            }
            if (Config.MiscMenu["useWKS"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady())
            {
                var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                                                         t.IsValidTarget() &&
                                                                                         t.HasBuff("kennenmarkofstorm") &&
                                                                                         Spells.W.IsInRange(t) &&
                                                                                         t.Health <= Damages.WDamage(t)), DamageType.Magical);

                if (target != null)
                {
                    Spells.W.Cast();
                }
            }
        }
示例#4
0
        //KillSteal
        public static void Killsteal()
        {
            if (Config.ComboMenu["useIg"].Cast <CheckBox>().CurrentValue&& Spells.ignite != null)
            {
                var target = EntityManager.Heroes.Enemies.FirstOrDefault(
                    t =>
                    t.IsValidTarget(Spells.ignite.Range) &&
                    t.Health <= Player.Instance.GetSpellDamage(t, Spells.ignite.Slot));

                if (target != null && Spells.ignite.IsReady())
                {
                    Spells.ignite.Cast(target);
                }
            }
            if (Config.MiscMenu["useQKS"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                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)
                {
                    var pred = Spells.Q.GetPrediction(target);
                    {
                        Spells.Q.Cast(pred.CastPosition);
                    }
                }
            }
            if (Config.MiscMenu["useWKS"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady())
            {
                var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                                                         t.IsValidTarget() &&
                                                                                         t.HasBuff("kennenmarkofstorm") &&
                                                                                         Spells.W.IsInRange(t) &&
                                                                                         t.Health <= Damages.WDamage(t)), DamageType.Magical);

                if (target != null)
                {
                    Spells.W.Cast();
                }
            }
        }