コード例 #1
0
        public static void KillSteal()
        {
            foreach (var enemy in EntityManager.Heroes.Enemies)
            {
                if (enemy.IsDead || enemy.Health == 0 || enemy.IsZombie)
                {
                    return;
                }
                if (KenchUnbenched.QSpell.IsReady() && TahmDamage.QDamage(enemy) > enemy.Health &&
                    KenchUnbenched.KillStealMenu["KillSteal.Q"].Cast <CheckBox>().CurrentValue)
                {
                    KenchUnbenched.QSpell.Cast(enemy);
                    return;
                }
                if (KenchUnbenched.WSpellSwallow.IsReady() && TahmDamage.WDamage(enemy) > enemy.Health && enemy.IsEmpowered() &&
                    KenchUnbenched.KillStealMenu["KillSteal.W.Swallow"].Cast <CheckBox>().CurrentValue)
                {
                    KenchUnbenched.QSpell.Cast(enemy);
                    return;
                }

                var pred = KenchUnbenched.WSpellSpit.GetPrediction(enemy);
                if (KenchCheckManager.IsSwallowed() && KenchUnbenched.KillStealMenu["KillSteal.W.Spit"].Cast <CheckBox>().CurrentValue&& TahmDamage.WPDamage(enemy) > enemy.Health)
                {
                    KenchUnbenched.WSpellSpit.Cast(enemy);
                    return;
                }
                if (KenchUnbenched.WSpellSwallow.IsReady() && TahmDamage.WPDamage(enemy) > enemy.Health && (!pred.CollisionObjects.Any() || pred.CollisionObjects.Count() == 1 && pred.CollisionObjects[0].IsMinion && pred.CollisionObjects[0].Distance(Player.Instance) <= 250) && enemy.IsEmpowered() &&
                    KenchUnbenched.KillStealMenu["KillSteal.W.Spit"].Cast <CheckBox>().CurrentValue)
                {
                    if (pred.CollisionObjects.Count() == 1 && pred.CollisionObjects[0].IsMinion)
                    {
                        KenchUnbenched.WSpellSwallow.Cast(pred.CollisionObjects[0]);
                        return;
                    }
                    if (pred.CollisionObjects.Any())
                    {
                        continue;
                    }
                    var unit =
                        EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(
                            a => a.Distance(Player.Instance) <= 250);
                    if (unit != null)
                    {
                        KenchUnbenched.WSpellSwallow.Cast(unit);
                    }
                }
            }
        }
コード例 #2
0
        public static void Harass()
        {
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (KenchUnbenched.HarassMenu["Harass.Q"].Cast <CheckBox>().CurrentValue&& KenchUnbenched.QSpell.IsReady() && target.IsValidTarget(800) && (!KenchUnbenched.HarassMenu["Harass.QOnlyStun"].Cast <CheckBox>().CurrentValue || !Player.Instance.IsInAutoAttackRange(target) || target.IsEmpowered()))
            {
                KenchUnbenched.QSpell.Cast(target);
            }

            if (KenchUnbenched.HarassMenu["Harass.W.Enemy"].Cast <CheckBox>().CurrentValue&& !KenchCheckManager.IsSwallowed() && target.IsEmpowered())
            {
                KenchUnbenched.WSpellSwallow.Cast(target);
            }

            if (KenchUnbenched.HarassMenu["Harass.W.Minion"].Cast <CheckBox>().CurrentValue)
            {
                if (KenchUnbenched.WSpellSpit.GetPrediction(target).HitChance >= HitChance.Medium)
                {
                    foreach (var minion in EntityManager.MinionsAndMonsters.EnemyMinions)
                    {
                        if (minion.Distance(Player.Instance) < KenchUnbenched.WSpellSwallow.Range)
                        {
                            KenchUnbenched.WSpellSwallow.Cast(minion);
                            break;
                        }
                    }
                }

                if (KenchCheckManager.IsSwallowed() && KenchCheckManager.WTarget != null &&
                    KenchCheckManager.WTarget.IsMinion)
                {
                    KenchUnbenched.WSpellSpit.Cast(target);
                }
            }
        }