示例#1
0
        private static void AutoCC()
        {
            var autoCCTarget =
                EntityManager.Heroes.Enemies.FirstOrDefault(
                    x => x.IsValidTarget(Q.Range) &&
                    x.HasBuffOfType(BuffType.Charm) || x.HasBuffOfType(BuffType.Knockup) ||
                    x.HasBuffOfType(BuffType.Stun) || x.HasBuffOfType(BuffType.Suppression) ||
                    x.HasBuffOfType(BuffType.Snare));;

            if (autoCCTarget != null && autoCCTarget.IsValidTarget(Q.Range))
            {
                if (FappadredMenu.ComboCC() && Q.IsReady())
                {
                    Q.Cast(autoCCTarget.Position);
                }
                if (FappadredMenu.ComboCC1() && E.IsReady())
                {
                    E.Cast(autoCCTarget);
                }
            }
        }