예제 #1
0
        private static void OnLaneClear()
        {
            var count =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition,
                                                                Player.AttackRange, false).Count();
            var source =
                EntityManager.MinionsAndMonsters.GetLaneMinions().OrderBy(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (count == 0)
            {
                return;
            }
            if (E.IsReady() && FapturneMenu.LcE() &&
                Player.ManaPercent >= FapturneMenu.LcM())
            {
                E.Cast(source);
            }
            if (Q.IsReady() && Player.ManaPercent >= FapturneMenu.LcM() && FapturneMenu.LcQ1() <= count)
            {
                if (FapturneMenu.LcQ() && FapturneMenu.LcQ2() && source.IsValidTarget(Q.Range) &&
                    Player.GetSpellDamage(source, SpellSlot.Q) >= source.Health && !source.IsDead)
                {
                    Q.Cast(source.Position);
                }

                if (Q.IsReady() && FapturneMenu.LcQ() && !FapturneMenu.LcQ2() && source.IsValidTarget(Q.Range))
                {
                    Q.Cast(source.Position);
                }
            }
        }