예제 #1
0
 static void Combo()
 {
     if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
     {
         foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
         {
             if (R.CanCast(target) && AIO_Func.isKillable(target, getComboDamage(target)))
             {
                 R.Cast(target);
             }
         }
     }
 }
예제 #2
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (Q.CanCast(target) && AIO_Func.isKillable(target, Q))
                {
                    Q.Cast(target);
                }

                if (E.CanCast(target) && AIO_Func.isKillable(target, E))
                {
                    E.Cast(target);
                }
            }
        }
예제 #3
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (E.CanCast(target) && AIO_Func.isKillable(target, E))
                {
                    E.Cast(target);
                }

                if (R.CanCast(target) && AIO_Func.isKillable(target, R.GetDamage2(target) * 4))
                {
                    CastR1();
                }
            }
        }
예제 #4
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (W.CanCast(target) && AIO_Func.isKillable(target, W) && AIO_Menu.Champion.Misc.getBoolValue("KillstealW"))
                {
                    AIO_Func.CCast(W, target);
                }

                if (E.CanCast(target) && AIO_Func.isKillable(target, E) && AIO_Menu.Champion.Misc.getBoolValue("KillstealE"))
                {
                    E.Cast(target);
                }
            }
        }
예제 #5
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (W.CanCast(target) && AIO_Func.isKillable(target, W))
                {
                    W.Cast(target, false, true);
                }

                if (R.CanCast(target) && AIO_Func.isKillable(target, R.GetDamage(target) * 2))
                {
                    R.Cast();
                }
            }
        }
예제 #6
0
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (R.CanCast(target) && AIO_Func.isKillable(target, R))
         {
             if (Player.HasBuff2("NocturnPeranoia"))
             {
                 R.Cast(target);
             }
             else
             {
                 R.Cast();
             }
         }
     }
 }
예제 #7
0
 static void Combo()
 {
     if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
     {
         foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
         {
             if (R.CanCast(target) && AIO_Func.isKillable(target, getComboDamage(target)) && target.Distance(Player.ServerPosition) < 1000)
             {
                 AIO_Func.LCast(R, target);
             }
             else if (R.CanCast(target) && AIO_Func.isKillable(target, R) && target.Distance(Player.ServerPosition) < 3000)
             {
                 AIO_Func.LCast(R, target);
             }
         }
     }
 }
예제 #8
0
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (!Q.IsReady() && target.Distance(Player.ServerPosition) > R.Range - 100f && R.CanCast(target) && AIO_Func.ECTarget(target, 800f) == 1 && AIO_Func.isKillable(target, R.GetDamage2(target) + (float)Player.GetAutoAttackDamage2(target, true)))
         {
             if (AIO_Menu.Champion.Combo.getBoolValue("R Usage For Solo Target"))
             {
                 R.Cast(target);
             }
         }
         if (R.CanCast(target) && AIO_Func.ECTarget(target, 800f) >= 2 && AIO_Func.isKillable(target, R.GetDamage2(target, 3)))
         {
             R.Cast(target);
         }
     }
 }
예제 #9
0
        static void Combo()
        {
            if (AIO_Menu.Champion.Combo.UseQ && Q.IsReady())
            {
                var qTarget = TargetSelector.GetTarget(Q.Range, Q.DamageType, true);


                if (qTarget != null && !Player.IsDashing())
                {
                    Q.Cast(qTarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                var wTarget = TargetSelector.GetTarget(W.Range, W.DamageType, true);

                if (wTarget != null && !Player.IsDashing())
                {
                    W.Cast(wTarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var eTarget = TargetSelector.GetTarget(E.Range + Orbwalking.GetRealAutoAttackRange(Player), E.DamageType, true);
                var turret  = ObjectManager.Get <Obj_AI_Turret>().OrderBy(t => t.Distance(Player.Position)).First(t => t.IsEnemy);
                var EP      = (eTarget != null ? Player.ServerPosition.Extend(eTarget.ServerPosition, E.Range) : Player.ServerPosition);
                var SZ      = (turret != null ? (EP.Distance(turret.ServerPosition) > 950 ? EP : Player.ServerPosition) : EP);
                if (eTarget != null && AIO_Func.isKillable(eTarget, getComboDamage(eTarget)) && (turret != null && EP.Distance(turret.ServerPosition) > 950 || turret == null))
                {
                    E.Cast(SZ);
                }
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = HeroManager.Enemies.Where(x => R.CanCast(x) && x.Health + (x.HPRegenRate / 2) <= R.GetDamage2(x) && R.GetPrediction(x).Hitchance >= HitChance.VeryHigh).OrderByDescending(x => x.Health).FirstOrDefault();

                if (R.CanCast(Rtarget))
                {
                    R.Cast(Rtarget);
                }
            }
        }
예제 #10
0
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (R.CanCast(target) && Q.CanCast(target) && AIO_Func.isKillable(target, R.GetDamage2(target) + Q.GetDamage2(target)))
         {
             AIO_Func.CCast(R, target);
         }
         else if (R.CanCast(target) && W.IsReady() && AIO_Func.isKillable(target, R.GetDamage2(target) + W.GetDamage2(target)))
         {
             AIO_Func.CCast(R, target);
         }
         else if (R.CanCast(target) && AIO_Func.isKillable(target, R))
         {
             AIO_Func.CCast(R, target);
         }
     }
 }
예제 #11
0
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (R.CanCast(target) && AIO_Func.isKillable(target, R))
         {
             R.Cast(target);
         }
         else
         {
             var buff = AIO_Func.getBuffInstance(target, "dariushemo");
             if (R.CanCast(target) && AIO_Func.isKillable(target, R.GetDamage2(target) * (1 + (float)buff.Count / 5) - 15))
             {
                 R.Cast(target);
             }
         }
     }
 }
예제 #12
0
        static void AA()
        {
            AIO_Func.AACb(E);

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                foreach (var rtarget in HeroManager.Enemies.OrderByDescending(x => x.Health))
                {
                    if (AIO_Menu.Champion.Combo.UseR && R.IsReady() &&
                        utility.Activator.AfterAttack.ALLCancelItemsAreCasted && !E.IsReady() &&
                        HeroManager.Enemies.Any(x => x.IsValidTarget(R.Range)) &&
                        AIO_Func.isKillable(rtarget, R.GetDamage2(rtarget) + Q.GetDamage2(rtarget) * 2))
                    {
                        R.Cast(rtarget);
                    }
                }
            }
        }
예제 #13
0
 static void Combo()
 {
     if (RA && R.IsReady())
     {
         foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
         {
             if (R.CanCast(target) && AIO_Func.isKillable(target, (Q.IsReady() ? Q.GetDamage2(target) : 0) + (W.IsReady() ? W.GetDamage2(target) : 0)
                                                          + (E.IsReady() ? E.GetDamage2(target) : 0) + (R.IsReady() ? R.GetDamage2(target) * 3 : 0)) && target.Distance(Player.ServerPosition) < 1000 && target.Distance(Game.CursorPos) < 600f)
             {
                 R.Cast(Game.CursorPos);
             }
             else if (R.CanCast(target) && AIO_Func.isKillable(target, R.GetDamage2(target) * 2) && target.Distance(Player.ServerPosition) < 900 && target.Distance(Game.CursorPos) < 600f)
             {
                 R.Cast(Game.CursorPos);
             }
         }
     }
 }
예제 #14
0
파일: Cassiopeia.cs 프로젝트: werdbrian/LS
        static void Laneclear()
        {
            if (!(AIO_Func.getManaPercent(Player) > AIO_Menu.Champion.Laneclear.IfMana))
            {
                return;
            }

            var Minions = MinionManager.GetMinions(1000, MinionTypes.All, MinionTeam.Enemy);

            if (Minions.Count <= 0)
            {
                return;
            }

            if (AIO_Menu.Champion.Laneclear.UseQ && Q.IsReady())
            {
                var qloc = Q.GetCircularFarmLocation(Minions.Where(x => x.IsValidTarget(Q.Range)).ToList());

                if (qloc.MinionsHit >= 1)
                {
                    Q.Cast(qloc.Position);
                }
            }

            if (AIO_Menu.Champion.Laneclear.UseW && W.IsReady())
            {
                var wloc = W.GetCircularFarmLocation(Minions.Where(x => x.IsValidTarget(Q.Range)).ToList());

                if (wloc.MinionsHit >= 1)
                {
                    W.Cast(wloc.Position);
                }
            }

            if (AIO_Menu.Champion.Laneclear.UseE && E.IsReady())
            {
                var eTarget = Minions.FirstOrDefault(m => AIO_Func.isKillable(m, E, 0) && HealthPrediction.GetHealthPrediction(m, (int)(Player.Distance(m, false) / E.Speed), (int)(E.Delay * 1000 + Game.Ping / 2)) > 0 && IsPoisoned(m));

                if (eTarget != null)
                {
                    E.CastOnUnit(eTarget);
                }
            }
        }
예제 #15
0
        static void Combo()
        {
            var TTTget = TargetSelector.GetTarget(E.Range + Player.MoveSpeed * E.Delay, TargetSelector.DamageType.Magical);

            if (TTTget == null)
            {
                return;
            }

            if (AIO_Menu.Champion.Combo.UseQ && Q.IsReady())
            {
                var Qtarget = TargetSelector.GetTarget(Q.Range, Q.DamageType);
                AIO_Func.LCast(Q, Qtarget, QD, 1f);
            }

            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var Etarget = TargetSelector.GetTarget(E.Range + Player.MoveSpeed * E.Delay, TargetSelector.DamageType.Magical);
                castE(Etarget);
            }

            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                var Wtarget = TargetSelector.GetTarget(W.Range, W.DamageType);
                var pred    = W.GetPrediction(Wtarget);
                if (pred.Hitchance == HitChance.Immobile || Wtarget.Buffs.Where(b => b.IsActive && Game.Time < b.EndTime && (b.Type == BuffType.Charm || b.Type == BuffType.Knockback || b.Type == BuffType.Stun || b.Type == BuffType.Suppression || b.Type == BuffType.Snare)).Aggregate(0f, (current, buff) => Math.Max(current, buff.EndTime)) - Game.Time >= W.Delay - 0.3f && W.IsReady())
                {
                    W.Cast(Wtarget, false, true);
                }
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = TargetSelector.GetTarget(R.Range, R.DamageType);

                if (AIO_Func.isKillable(Rtarget, R) || Rtarget.Buffs.Where(b => b.IsActive && Game.Time < b.EndTime && (b.Type == BuffType.Charm || b.Type == BuffType.Knockback || b.Type == BuffType.Stun || b.Type == BuffType.Suppression || b.Type == BuffType.Snare)).Aggregate(0f, (current, buff) => Math.Max(current, buff.EndTime)) - Game.Time >= R.Delay && R.IsReady())
                {
                    if (HeroManager.Enemies.Any(x => x.IsValidTarget(R.Range)))
                    {
                        R.Cast(Rtarget);
                    }
                }
            }
        }
예제 #16
0
파일: Tristana.cs 프로젝트: werdbrian/LS
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (R.IsReady() && target != null)
         {
             var  Buff = (target.HasBuff("tristanaechargesound") ? AIO_Func.getBuffInstance(target, "tristanaecharge") : null);
             bool EK   = (target.HasBuff("tristanaechargesound") && (float)Buff.Count > 0 && AIO_Func.isKillable(target, E.GetDamage2(target) * (((float)Buff.Count - 1) * 0.30f + 1f)) || !target.HasBuff("tristanaechargesound"));
             if (R.CanCast(target) && Buff != null && (float)Buff.Count > 0 && target.HasBuff("tristanaechargesound") && (AIO_Func.getBuffInstance(target, "tristanaechargesound").EndTime - Game.ClockTime) > 0.3 && AIO_Func.isKillable(target, R.GetDamage2(target) + E.GetDamage2(target) * (((float)Buff.Count - 1) * 0.30f + 1f)) && !EK)
             {
                 R.Cast(target);
             }
             else if (R.CanCast(target) && AIO_Func.isKillable(target, R) && !EK)
             {
                 R.Cast(target);
             }
         }
     }
 }
예제 #17
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (Q.IsReady() && target.IsValidTarget(Q.ChargedMaxRange) && Q.IsCharging && Q.IsKillable(target) && Q.GetPrediction(target).Hitchance >= HitChance.High)
                {
                    Q.Cast(target);
                }

                if (E.CanCast(target) && AIO_Func.isKillable(target, E))
                {
                    E.Cast(target);
                }

                if (R.CanCast(target) && AIO_Func.isKillable(target, R))
                {
                    R.Cast(target);
                }
            }
        }
예제 #18
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (Q.CanCast(target) && AIO_Func.isKillable(target, Q) && AIO_Menu.Champion.Misc.getBoolValue("KillstealQ"))
                {
                    AIO_Func.CCast(Q, target);
                }

                if (R.CanCast(target) && AIO_Func.isKillable(target, R) && AIO_Menu.Champion.Misc.getBoolValue("KillstealR"))
                {
                    AIO_Func.CCast(R, target);
                }

                if (E.CanCast(target) && AIO_Func.isKillable(target, E) && AIO_Menu.Champion.Misc.getBoolValue("KillstealE"))
                {
                    AIO_Func.LCast(E, target, ED, float.MaxValue);
                }
            }
        }
예제 #19
0
        static void Killsteal()
        {
            foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
            {
                if (Q.CanCast(target) && AIO_Func.isKillable(target, Q))
                {
                    Q.Cast(target);
                }

                if (W.CanCast(target) && AIO_Func.isKillable(target, W))
                {
                    W.Cast(target);
                }

                if (R.CanCast(target) && AIO_Func.isKillable(target, R.GetDamage2(target) + (Q.IsReady() ? Q.GetDamage2(target) : 0)))
                {
                    R.Cast(target);
                }
            }
        }
예제 #20
0
        static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || Player.IsDead)
            {
                return;
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                if (args.SData.Name == Player.Spellbook.GetSpell(SpellSlot.Q).Name&& HeroManager.Enemies.Any(x => x.IsValidTarget(R.Range)))
                {
                    var Qtarget = TargetSelector.GetTarget(Q.Range, Q.DamageType);
                    if (Qtarget != null && AIO_Func.isKillable(Qtarget, Q.GetDamage2(Qtarget) + (AIO_Menu.Champion.Combo.UseW ? W.GetDamage2(Qtarget) * 4 : 0f) + (AIO_Menu.Champion.Combo.UseE ? E.GetDamage2(Qtarget) : 0f) + (AIO_Menu.Champion.Combo.UseR && R.IsReady() ? R.GetDamage2(Qtarget) : 0f) + (float)Player.GetAutoAttackDamage2(Qtarget, true) * 3))
                    {
                        if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
                        {
                            R.Cast(Qtarget);
                        }
                    }
                }
                if (args.SData.Name == Player.Spellbook.GetSpell(SpellSlot.E).Name&& HeroManager.Enemies.Any(x => x.IsValidTarget(R.Range)))
                {
                    var Etarget = TargetSelector.GetTarget(E.Range, E.DamageType);
                    if (Etarget != null && AIO_Func.isKillable(Etarget, E.GetDamage2(Etarget) + (AIO_Menu.Champion.Combo.UseW ? W.GetDamage2(Etarget) * 4 : 0f) + (AIO_Menu.Champion.Combo.UseQ ? Q.GetDamage2(Etarget) : 0f) + (AIO_Menu.Champion.Combo.UseR && R.IsReady() ? R.GetDamage2(Etarget) : 0f) + (float)Player.GetAutoAttackDamage2(Etarget, true) * 3))
                    {
                        if (AIO_Menu.Champion.Combo.UseQ && Q.IsReady())
                        {
                            Q.Cast(Etarget.ServerPosition);
                        }
                    }
                }
                if (args.SData.Name == Player.Spellbook.GetSpell(SpellSlot.R).Name&& HeroManager.Enemies.Any(x => x.IsValidTarget(R.Range)))
                {
                    Orbwalker.SetMovement(false);
                }
                else
                {
                    Orbwalker.SetMovement(true);
                }
            }
        }
예제 #21
0
        static void ObjectSteal()
        {
            float smdmg = setSmiteDamage();

            setSmiteSlot();
            foreach (var target in MinionManager.GetMinions(Orbwalking.GetRealAutoAttackRange(Player) / 2 + 200f, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).OrderByDescending(x => x.Health).Where(x => x.Name.ToLower().Contains("Dragon") || x.Name.ToLower().Contains("Baron")))
            {
                if (Q.CanCast(target) && AIO_Func.isKillable(target, Q.GetDamage2(target) + smdmg) && Q.IsReady() && smite.IsReady())
                {
                    Q.Cast(target);
                }
                if (Q.CanCast(target) && AIO_Func.isKillable(target, Q.GetDamage2(target)) && Q.IsReady())
                {
                    Q.Cast(target);
                }
                if (Q.CanCast(target) && AIO_Func.isKillable(target, smdmg) && smite.IsReady())
                {
                    smite.Cast(target);
                }
            }
        }
예제 #22
0
        static void AutoR()
        {
            var Target = TargetSelector.GetTarget(Q.Range, Q.DamageType, true);

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && R.IsReady() && Target != null)
            {
                if (HAMMER && Player.Distance(Target.ServerPosition) > Orbwalking.GetRealAutoAttackRange(Player) && !Q.IsReady() && !E.IsReady())
                {
                    R.Cast();
                }
                else if (HAMMER && Player.Distance(Target.ServerPosition) > E.Range + 50f && !Q.IsReady())
                {
                    R.Cast();
                }
                else if (!HAMMER && !Q.IsReady() && (!W.IsReady() || Player.HasBuff2("jaycehypercharge")) && !E.IsReady() && AIO_Func.ECTarget(Player, 1000f, 40) <= 1 && Player.HealthPercent > 40 &&
                         AIO_Func.isKillable(Target, (Q.GetDamage2(Target, 1) + W.GetDamage2(Target) + E.GetDamage2(Target) + (float)Player.GetAutoAttackDamage2(Target, true)) * 1.5f))
                {
                    R.Cast();
                }
            }
        }
예제 #23
0
        static void Combo()
        {
            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                W.Cast(Player);
            }
            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var Etarget = TargetSelector.GetTarget(E.Range, E.DamageType);
                E.Cast(Etarget);
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = TargetSelector.GetTarget(R.Range, R.DamageType);
                if (AIO_Func.isKillable(Rtarget, E.GetDamage2(Rtarget) + R.GetDamage2(Rtarget) - Rtarget.HPRegenRate) && E.IsReady())
                {
                    R.Cast(Rtarget);
                }
            }
        }
예제 #24
0
 static void KillstealR()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health)) // Advanced Kill Combo by rl244
     {
         if (R.CanCast(target) && Player.HasBuff2("DianaOrbs") && Player.HasBuff2("dianaarcready") && AIO_Func.isKillable(target, R.GetDamage2(target) + W.GetDamage2(target) + (float)Player.GetAutoAttackDamage2(target, false)))
         {
             R.Cast(target);
         }
         else if (R.CanCast(target) && Player.HasBuff2("dianaarcready") && AIO_Func.isKillable(target, R.GetDamage2(target) + (float)Player.GetAutoAttackDamage2(target, false)))
         {
             R.Cast(target);
         }
         else if (R.CanCast(target) && Player.HasBuff2("DianaOrbs") && AIO_Func.isKillable(target, R.GetDamage2(target) + W.GetDamage2(target) + (float)Player.GetAutoAttackDamage2(target, false)))
         {
             R.Cast(target);
         }
         else if (R.CanCast(target) && AIO_Func.isKillable(target, R))
         {
             R.Cast(target);
         }
     }
 }
예제 #25
0
파일: Trundle.cs 프로젝트: werdbrian/LS
        static void Combo()
        {
            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                var Wtarget = TargetSelector.GetTarget(W.Range, W.DamageType);
                AIO_Func.CCast(W, Wtarget);
            }
            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var Etarget = TargetSelector.GetTarget(E.Range, E.DamageType);
                AIO_Func.CCast(E, Etarget);
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = TargetSelector.GetTarget(R.Range, R.DamageType);
                if (AIO_Func.isKillable(Rtarget, R.GetDamage2(Rtarget) - Rtarget.HPRegenRate) || AIO_Func.getHealthPercent(Player) < 50)
                {
                    R.Cast(Rtarget);
                }
            }
        }
예제 #26
0
        static void Combo()
        {
            if (AIO_Menu.Champion.Combo.UseQ && Q.IsReady())
            {
                var Qtarget = TargetSelector.GetTarget(Q.Range, Q.DamageType);
                if (Qtarget != null)
                {
                    Q.Cast(Qtarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var Etarget = TargetSelector.GetTarget(E.Range + 700f, TargetSelector.DamageType.Magical);
                if (Etarget != null)
                {
                    AIO_Func.AtoB(E, Etarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                var Wtarget = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical);
                if (Wtarget != null && Player.Mana >= 250 && Wtarget.HealthPercent > Player.HealthPercent / 2)
                {
                    AIO_Func.CCast(W, Wtarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);
                if (R.Instance.Name == "ViktorChaosStorm" && !AIO_Func.isKillable(Rtarget, (E.IsReady() ? E.GetDamage2(Rtarget, 2) : 0) + (Q.IsReady() ? Q.GetDamage2(Rtarget) * 2.5f : 0) + (float)Player.GetAutoAttackDamage2(Rtarget, true)) &&
                    AIO_Func.isKillable(Rtarget, R.GetDamage2(Rtarget) + R.Width / Rtarget.MoveSpeed * R.GetDamage2(Rtarget, 1) * 3 + (E.IsReady() ? E.GetDamage2(Rtarget, 2) : 0) + (Q.IsReady() ? Q.GetDamage2(Rtarget) * 2.5f : 0) + (float)Player.GetAutoAttackDamage2(Rtarget, true)) && Rtarget != null)
                {
                    AIO_Func.CCast(R, Rtarget);
                }
            }
        }
예제 #27
0
파일: Viktor.cs 프로젝트: werdbrian/LS
        static void Combo()
        {
            if (AIO_Menu.Champion.Combo.UseQ && Q.IsReady())
            {
                var Qtarget = TargetSelector.GetTarget(Q.Range, Q.DamageType);
                if (Qtarget != null)
                {
                    Q.Cast(Qtarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var Etarget = TargetSelector.GetTarget(E.Range + 700f, TargetSelector.DamageType.Magical);
                if (Etarget != null)
                {
                    AIO_Func.AtoB(E, Etarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                var Wtarget = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical);
                if (Wtarget != null)
                {
                    AIO_Func.CCast(W, Wtarget);
                }
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);
                if (R.Instance.Name == "ViktorChaosStorm" && AIO_Func.isKillable(Rtarget, R.GetDamage2(Rtarget) + R.Width / Rtarget.MoveSpeed * R.GetDamage2(Rtarget, 1) * 3 + (E.IsReady() ? (E2 ? E.GetDamage2(Rtarget, 1) : E.GetDamage2(Rtarget)) : 0) + (Q.IsReady() ? Q.GetDamage2(Rtarget) : 0)) && Rtarget != null)
                {
                    AIO_Func.CCast(R, Rtarget);
                }
            }
        }
예제 #28
0
파일: Tristana.cs 프로젝트: werdbrian/LS
 static void KillstealW()
 {
     foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
     {
         if (W.IsReady() && target != null)
         {
             var  Buff = (target.HasBuff("tristanaechargesound") ? AIO_Func.getBuffInstance(target, "tristanaecharge") : null);
             bool EK   = (target.HasBuff("tristanaechargesound") && (float)Buff.Count > 0 && AIO_Func.isKillable(target, E.GetDamage2(target) * (((float)Buff.Count - 1) * 0.30f + 1f)) || !target.HasBuff("tristanaechargesound"));
             if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && Buff != null && !EK && W.CanCast(target) && R.IsReady() && AIO_Menu.Champion.Misc.getBoolValue("KillstealR") && target.HasBuff("tristanaechargesound") && (AIO_Func.getBuffInstance(target, "tristanaechargesound").EndTime - Game.ClockTime) > 0.6 && (float)Buff.Count > 0 && AIO_Func.isKillable(target, R.GetDamage2(target) + W.GetDamage2(target) * (((float)Buff.Count - 1) * 0.25f + 1f) + E.GetDamage2(target) * (((float)Buff.Count - 1) * 0.25f + 1f) + (float)Player.GetAutoAttackDamage2(target, true)))
             {
                 AIO_Func.CCast(W, target);
             }
             if (W.CanCast(target) && target.HasBuff("tristanaechargesound") && (AIO_Func.getBuffInstance(target, "tristanaechargesound").EndTime - Game.ClockTime) > 0.6 && Buff != null && !EK && (float)Buff.Count > 0 && AIO_Func.isKillable(target, W.GetDamage2(target) * (((float)Buff.Count - 1) * 0.25f + 1f) + E.GetDamage2(target) * (((float)Buff.Count - 1) * 0.30f + 1f) + (float)Player.GetAutoAttackDamage2(target, true)))
             {
                 AIO_Func.CCast(W, target);
             }
             else if (W.CanCast(target) && !EK && AIO_Func.isKillable(target, W.GetDamage2(target) + (float)Player.GetAutoAttackDamage2(target, true)))
             {
                 AIO_Func.CCast(W, target);
             }
         }
     }
 }
예제 #29
0
파일: Shyvana.cs 프로젝트: werdbrian/LS
        static void Combo()
        {
            if (AIO_Menu.Champion.Combo.UseW && W.IsReady())
            {
                var Wtarget = TargetSelector.GetTarget(W.Range, E.DamageType);
                W.Cast();
            }

            if (AIO_Menu.Champion.Combo.UseE && E.IsReady())
            {
                var Etarget = TargetSelector.GetTarget(E.Range, E.DamageType);
                AIO_Func.LCast(E, Etarget, ED);
            }

            if (AIO_Menu.Champion.Combo.UseR && R.IsReady())
            {
                var Rtarget = TargetSelector.GetTarget(R.Range, R.DamageType);
                if (AIO_Func.isKillable(Rtarget, getComboDamage(Rtarget) * 1.5f))
                {
                    AIO_Func.LCast(R, Rtarget, ED);
                }
            }
        }
예제 #30
0
        static void Game_OnUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Orbwalking.CanMove(35))
            {
                Q.SC(QD);
                E.MouseSC();
                W.SC();
            }

            E.FleeToPosition();

            #region R.Cast()
            var RT = (Clone != null ? HeroManager.Enemies.Where(x => x.Distance(Clone.ServerPosition) <= R.Range).FirstOrDefault() : null);
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && AIO_Menu.Champion.Combo.UseR && Clone.ECTarget(R.Range) > 0 && R.IsReady())
            {
                R.Cast();
            }

            if (Player.HealthPercent < 30 && (RT != null && AIO_Func.isKillable(RT, R.GetDamage2(RT)) || RT == null && 1000f.EnemyCount() > 0) && R.IsReady() &&
                AIO_Menu.Champion.Misc.getBoolValue("R Cast for Heal"))
            {
                R.Cast();
            }
            #endregion

            #region Killsteal
            if (AIO_Menu.Champion.Misc.getBoolValue("KillstealQ"))
            {
                KillstealQ();
            }
            #endregion
        }