示例#1
0
        /// <summary>
        ///     On Mixed
        /// </summary>
        private void Mixed()
        {
            var basename = BaseName + "Mixed.";

            var enemies = Functions.Objects.Heroes.GetEnemies(E.Range).OrderBy(x => x.Health);

            if (StaticObjects.ProjectMenu.Item($"{basename}.UseE").GetValue <bool>())
            {
                if (_manaManager.CheckMixedE())
                {
                    foreach (var target in enemies)
                    {
                        if (!StaticObjects.ProjectMenu.Item($"{basename}.UseE.On.{target.ChampionName}").GetValue <bool>())
                        {
                            continue;
                        }

                        if (target.HasBuffOfType(BuffType.Invulnerability) || target.HasBuffOfType(BuffType.SpellImmunity) || target.HasBuffOfType(BuffType.SpellShield))
                        {
                            continue;
                        }

                        E.Cast(target);
                        break;
                    }
                }
            }

            if (StaticObjects.ProjectMenu.Item($"{basename}.UseQ").GetValue <bool>())
            {
                foreach (var target in enemies.Where(x => x.HasBuff("TristanaECharge")))
                {
                    Q.Cast();
                    Orbwalker.ForceTarget(target);
                }
            }
        }