コード例 #1
0
        private static void Harass()
        {
            var mana = Player.ManaPercentage() > HarassMenu.Item("HaraManaPercent").GetValue <Slider>().Value;
            var t    = TargetSelector.GetTarget(SpellClass.Q2.Range, TargetSelector.DamageType.Physical);

            if (!mana)
            {
                return;
            }

            if (HarassMenu.Item("useQ").GetValue <bool>())
            {
                ComboClass.SpellQ(t);
                ComboClass.SpellSecondQ();
            }

            if (HarassMenu.Item("haraE").GetValue <bool>())
            {
                SpellClass.E.CastIfHitchanceEquals(t, HitChance.VeryHigh, ComboClass.PacketCast);
            }
        }
コード例 #2
0
        private static void LaneClear()
        {
            var mana    = Player.ManaPercentage() > LaneClearMenu.Item("LaneClearManaPercent").GetValue <Slider>().Value;
            var minions = MinionManager.GetMinions(Player.ServerPosition, Player.AttackRange, MinionTypes.All, MinionTeam.NotAlly);

            if (!mana)
            {
                return;
            }

            if (LaneClearMenu.Item("useQ").GetValue <bool>() && SpellClass.Q.IsReady())
            {
                foreach (var minion in minions.Where(minion => minion.IsValidTarget()))
                {
                    if (SpellClass.Q2.IsInRange(minion) && minion.HasBuff("urgotcorrosivedebuff", true))
                    {
                        SpellClass.Q2.Cast(minion.ServerPosition, PacketCast);
                    }
                    else
                    {
                        ComboClass.SpellQ(minion);
                    }
                }
            }

            if (LaneClearMenu.Item("haraE").GetValue <bool>() && SpellClass.E.IsReady())
            {
                foreach (var minion in minions.Where(minion => minion.IsValidTarget()))
                {
                    if (minion.IsValidTarget(SpellClass.E.Range))
                    {
                        SpellClass.E.Cast(minion.ServerPosition, PacketCast);
                    }
                }
            }
        }