示例#1
0
文件: Syndra.cs 项目: spall9/KappAIO
        public override void Harass()
        {
            var qtarget     = Q.GetTarget();
            var wtarget     = W.GetTarget();
            var etarget     = E.GetTarget();
            var eballtarget = Eball.GetTarget();
            var qmanacheck  = Player.Instance.ManaPercent > HarassMenu.SliderValue("Qmana");
            var wmanacheck  = Player.Instance.ManaPercent > HarassMenu.SliderValue("Wmana");
            var emanacheck  = Player.Instance.ManaPercent > HarassMenu.SliderValue("Emana");

            if (Q.IsReady() && E.IsReady() && qmanacheck && emanacheck && eballtarget != null && eballtarget.IsKillable(Eball.Range) && HarassMenu.CheckBoxValue("QE"))
            {
                QE(eballtarget);
            }

            if (Eball.IsReady() && emanacheck && eballtarget != null && HarassMenu.CheckBoxValue("Eball"))
            {
                EBall(eballtarget);
            }

            if (Q.IsReady() && qtarget != null && qmanacheck && qtarget.IsKillable() && HarassMenu.CheckBoxValue("Q"))
            {
                Q.Cast(qtarget, 30);
            }

            if (etarget != null && E.IsReady() && emanacheck && wtarget.IsKillable() && HarassMenu.CheckBoxValue("E"))
            {
                ECast(etarget);
            }

            if (wtarget != null && W.IsReady() && wmanacheck && HarassMenu.CheckBoxValue("W") && wtarget.IsKillable())
            {
                WCast(wtarget);
            }
        }
示例#2
0
        public override void Harass()
        {
            if (EntityManager.Heroes.Enemies.Any(e => e.RendCount() >= HarassMenu.SliderValue("Estacks") && e.IsKillable(E.Range)) && E.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent))
            {
                if (HarassMenu.CheckBoxValue("Emin"))
                {
                    if (EntityManager.MinionsAndMonsters.EnemyMinions.Any(e => e.EKill() && e.IsKillable(E.Range)) || EntityManager.MinionsAndMonsters.GetJungleMonsters().Any(e => e.EKill() && e.IsKillable(E.Range)))
                    {
                        E.Cast();
                    }
                }
                else
                {
                    E.Cast();
                }
            }

            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (HarassMenu.CheckBoxValue(Q.Slot) && Q.IsReady() && HarassMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                QCast(target);
            }
        }
示例#3
0
        public override void Harass()
        {
            var QTarget         = Q.GetTarget();
            var ETarget         = E.GetTarget();
            var EextendedTarget = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(e => e.IsKillable(MaxERange)), DamageType.Magical);

            if (E.IsReady() && HarassMenu.CheckBoxValue("E") && Player.Instance.ManaPercent > HarassMenu.SliderValue("Emana"))
            {
                if (ETarget != null && ETarget.IsKillable())
                {
                    E.Cast(ETarget, 30);
                }
                else
                {
                    if (EextendedTarget != null)
                    {
                        var cannontarget = ExtendETarget(EextendedTarget);
                        if (cannontarget != null)
                        {
                            E.Cast(cannontarget);
                        }
                    }
                }
                return;
            }
            if (Q.IsReady() && HarassMenu.CheckBoxValue("Q") && Player.Instance.ManaPercent > HarassMenu.SliderValue("Qmana"))
            {
                QCast(QTarget);
            }
        }