示例#1
0
        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);
                }
            }
        }
示例#2
0
 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);
             }
         }
     }
 }