예제 #1
0
파일: Lulu.cs 프로젝트: yashine59fr/PortAIO
        public void CustomInterrupter_OnInterruptableTarget(AIHeroClient sender,
            CustomInterrupter.InterruptableTargetEventArgs args)
        {
            if (sender == null || !sender.LSIsValidTarget() || sender.IsAlly)
            {
                return;
            }

            if (Utils.TickCount - LastWCast < 2000)
            {
                return;
            }

            if (getCheckBoxItem(wMenu, "WInterrupter") && W.CanCast(sender) && W.CastOnUnit(sender))
            {
                return;
            }

            if (!getCheckBoxItem(rMenu, "RInterrupter") || !R.IsReady())
            {
                return;
            }

            if (Allies.OrderBy(h => h.LSDistance(sender)).Any(h => h.LSIsValidTarget(R.Range, false) && h.LSDistance(sender) < RRadius && R.CastOnUnit(h)))
            {
            }
        }
예제 #2
0
        public void CustomInterrupter_OnInterruptableTarget(Obj_AI_Hero sender,
            CustomInterrupter.InterruptableTargetEventArgs args)
        {
            if (sender == null || !sender.IsValidTarget())
            {
                return;
            }

            if (Utils.TickCount - LastWCast < 2000)
            {
                return;
            }

            if (Menu.Item("WInterrupter").IsActive() && W.CanCast(sender) && W.CastOnUnit(sender))
            {
                return;
            }

            if (!Menu.Item("RInterrupter").IsActive() || !R.IsReady())
            {
                return;
            }

            if (
                Allies.OrderBy(h => h.Distance(sender))
                    .Any(h => h.IsValidTarget(R.Range, false) && h.Distance(sender) < RRadius && R.CastOnUnit(h))) {}
        }