예제 #1
0
파일: MyHero.cs 프로젝트: NoShurim/Buddys
        private static void Combo2()
        {
            var target = TargetSelector.GetTarget(1600, DamageType.Magical);
            var useQ   = CastCheckbox(Menus.Comb, "Q");
            var useW   = CastCheckbox(Menus.Comb, "W");
            var useE   = CastCheckbox(Menus.Comb, "E");
            var useR   = CastCheckbox(Menus.Comb, "R");
            var useRQ  = CastCheckbox(Menus.Comb, "RQ");
            var useRW  = CastCheckbox(Menus.Comb, "RW");
            var useRE  = CastCheckbox(Menus.Comb, "RE");
            var wpos   = Player.Instance.Position.Extend(target, Lib.W.Range).To3D();

            if (LeBlanc.Distance(target) < E.Range)
            {
                if (useE)
                {
                    CastE(target);
                }

                if (useQ && IsPassive(target))
                {
                    CastQ(target);
                }
                if (useR)
                {
                    CastR("RE", target);
                }
                if (useW && IsW1() && !RActive.IsReady())
                {
                    CastW(target.ServerPosition);
                }
            }

            else if (LeBlanc.Distance(target) < W.Range)
            {
                if (useQ)
                {
                    CastQ(target);
                }
                if (useE && !Q.IsReady())
                {
                    CastE(target);
                }
                if (useR)
                {
                    CastR("RW", target);
                }
                if (useW && IsW1() && !RActive.IsReady())
                {
                    CastW(target.ServerPosition);
                }
            }
        }
예제 #2
0
파일: MyHero.cs 프로젝트: NoShurim/Buddys
        private static void KillSteal()
        {
            foreach (var hptarget in EntityManager.Enemies.Where(a => a.IsValidTarget(1200) && !a.IsDead))
            {
                if (!hptarget.IsValid || hptarget.IsDead || hptarget == null)
                {
                    return;
                }
                var Health = hptarget.Health;
                if (Ignite.IsReady())
                {
                    var dmgI = (50 + ((LeBlanc.Level) * 20));
                    if (LeBlanc.Distance(hptarget) < Q.Range && Health < dmgI)

                    {
                        Ignite.Cast(hptarget);
                    }
                }
            }
        }
예제 #3
0
파일: MyHero.cs 프로젝트: NoShurim/Buddys
        public static string GetComboName()
        {
            var target = TargetSelector.GetTarget(1600, DamageType.Magical);

            if (target == null || !target.IsValid)
            {
                return("DF");
            }
            if (LeBlanc.Distance(target) < W.Range)
            {
                return("W");
            }
            else if (LeBlanc.Distance(target) < E.Range)
            {
                return("RE");
            }
            else if (target.IsValidTarget(W.Range + Q.Range))
            {
                return("Gap");
            }
            return("DF");
        }
예제 #4
0
파일: MyHero.cs 프로젝트: NoShurim/Buddys
        private static void ByCombo()
        {
            var target = TargetSelector.GetTarget(1600, DamageType.Magical);
            var useQ   = CastCheckbox(Menus.Comb, "Q");
            var useW   = CastCheckbox(Menus.Comb, "W");
            var useE   = CastCheckbox(Menus.Comb, "E");
            var useR   = CastCheckbox(Menus.Comb, "R");
            var useRQ  = CastCheckbox(Menus.Comb, "RQ");
            var useRW  = CastCheckbox(Menus.Comb, "RW");
            var useRE  = CastCheckbox(Menus.Comb, "RE");
            var wpos   = Player.Instance.Position.Extend(target, Lib.W.Range).To3D();

            if (LeBlanc.Distance(target) < W.Range)  //wQRE
            {
                if (useW && IsW1() && IsPassive(target))
                {
                    CastW(W.GetPrediction(target).CastPosition);
                }
                if (useQ && IsPassive(target))
                {
                    CastQ(target);
                }
                if (useRQ && IsR1() && IsPassive(target))
                {
                    CastR("RQ", target);
                }
                if (useE && IsPassive(target))
                {
                    CastE(target);
                }
                if (useW && IsW1() && IsPassive(target))
                {
                    CastW(W.GetPrediction(target).CastPosition);
                }
                if (useW && IsW1())
                {
                    CastW(W.GetPrediction(target).CastPosition);
                }
                if (useE)
                {
                    CastE(target);
                }
                if (useQ)
                {
                    CastQ(target);
                }
            }
            else if (LeBlanc.Distance(target) < E.Range)//REQEW
            {
                if (useRE && IsR1() && IsPassive(target))
                {
                    CastR("RE", target);
                }
                if (useQ && IsPassive(target))
                {
                    CastQ(target);
                }
                if (useE && IsPassive(target))
                {
                    CastE(target);
                }
                if (useW && IsW1() && IsPassive(target))
                {
                    CastW(W.GetPrediction(target).CastPosition);
                }
            }
            else if (target.IsValidTarget(W.Range + Q.Range))//gapclose combo W-R(E)-E-Q
            {
                var pos = LeBlanc.ServerPosition.Extend(target.ServerPosition, W.Range);
                if (IsW1() && useW)
                {
                    CastW(wpos);
                }
                if (useRE && IsR1())
                {
                    CastR("RE", target);
                }
                if (useQ && IsPassive(target))
                {
                    CastQ(target);
                }
                if (useE)
                {
                    CastE(target);
                }
            }
        }