Exemple #1
0
        void CastRSpecific(Obj_AI_Hero candidate)
        {
            var orbcount = GetOrbcount();

            if (candidate.HealthPercent < GetSliderFloat("c.rminh"))
            {
                return;
            }
            var basedamage = Syndra.GetSpellDamage(candidate, SpellSlot.R);
            var orbdamage  = Syndra.GetSpellDamage(candidate, SpellSlot.R, 1) * orbcount;
            var total      = basedamage + orbdamage;

            if (candidate.Health <= total)
            {
                SpellManager.R.Cast(candidate);
            }
        }
Exemple #2
0
        void FarmHandler()
        {
            if (Syndra.ManaPercent < GetSliderFloat("lh.mana"))
            {
                return;
            }

            var Minions =
                ObjectManager.Get <Obj_AI_Minion>()
                .Where(
                    m =>
                    m.IsValidTarget() &&
                    (Vector3.Distance(m.ServerPosition, Syndra.ServerPosition) <= SpellManager.Q.Range ||
                     Vector3.Distance(m.ServerPosition, Syndra.ServerPosition) <= SpellManager.W.Range ||
                     Vector3.Distance(m.ServerPosition, Syndra.ServerPosition) <= SpellManager.E.Range));

            if (SpellSlot.Q.IsReady() && GetBool("lh.q"))
            {
                var KillableMinionsQ = Minions.Where(m => m.Health <Syndra.GetSpellDamage(m, SpellSlot.Q) && Vector3.Distance(m.ServerPosition, Syndra.ServerPosition)> Syndra.AttackRange);
                if (KillableMinionsQ.Any())
                {
                    SpellManager.Q.Cast(KillableMinionsQ.FirstOrDefault().ServerPosition);
                    return;
                }
            }
            if (SpellSlot.W.IsReady() && GetBool("lh.w"))
            {
                var KillableMinionsW = Minions.Where(m => m.Health < Syndra.GetSpellDamage(m, SpellSlot.W) && Vector3.Distance(Syndra.ServerPosition, m.ServerPosition) < SpellManager.W.Range);
                var unit             = KillableMinionsW.FirstOrDefault();
                if (unit != null)
                {
                    SpellManager.W.CastOnUnit(unit);
                    return;
                }
            }

            if (SpellSlot.E.IsReady() && GetBool("lh.e"))
            {
                var KillableMinionsE = Minions.Where(m => m.Health <Syndra.GetSpellDamage(m, SpellSlot.E) && Vector3.Distance(m.ServerPosition, Syndra.ServerPosition)> Syndra.AttackRange);
                if (KillableMinionsE.Any())
                {
                    SpellManager.E.Cast(KillableMinionsE.FirstOrDefault().ServerPosition);
                    return;
                }
            }
        }
Exemple #3
0
        void CastR()
        {
            var candidates = HeroManager.Enemies.Where(x => x.IsValidTarget(SpellManager.R.Range)).OrderBy(x => TargetSelector.GetPriority(x));
            var orbcount   = GetOrbcount();

            foreach (var candidate in candidates.Where(x => !x.IsBlackListed()))
            {
                if (candidate.HealthPercent < GetSliderFloat("c.rminh"))
                {
                    continue;
                }
                var basedamage = Syndra.GetSpellDamage(candidate, SpellSlot.R);
                var orbdamage  = Syndra.GetSpellDamage(candidate, SpellSlot.R, 1) * orbcount;
                var total      = basedamage + orbdamage;
                if (candidate.Health <= total)
                {
                    SpellManager.R.Cast(candidate);
                }
            }
        }