Example #1
0
        public static void OnLaneClear()
        {
            var count  = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, Player.AttackRange, false).Count();
            var source = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, Player.AttackRange).OrderByDescending(a => a.MaxHealth).FirstOrDefault();

            if (count == 0)
            {
                return;
            }
            if (Q.IsReady() && IllaoiMenu.lcQ() && IllaoiMenu.lcQ1() <= count && Player.ManaPercent >= IllaoiMenu.lcM())
            {
                Q.Cast(source.Position);
            }
            if (W.IsReady() && IllaoiMenu.lcW() && IllaoiMenu.lcW1() <= count && Player.ManaPercent >= IllaoiMenu.lcM())
            {
                W.Cast();
            }
            if (E.IsReady() && IllaoiMenu.lcE() && IllaoiMenu.lcE2() <= count && Player.ManaPercent >= IllaoiMenu.lcM())
            {
                E.Cast(source.Position);
            }
        }