コード例 #1
0
 private void UseItem(Obj_AI_Base Target, bool IsFarm = false)
 {
     if (Bilgewater.IsReady() && !IsFarm)
     {
         Bilgewater.Cast(Target);
     }
     if (BladeRuined.IsReady() && !IsFarm)
     {
         BladeRuined.Cast(Target);
     }
     if (Tiamat.IsReady() && IsFarm ? Player.Distance3D(Target) <= Tiamat.Range : Player.CountEnemysInRange((int)Tiamat.Range) >= 1)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady() && IsFarm ? Player.Distance3D(Target) <= Hydra.Range : (Player.CountEnemysInRange((int)Hydra.Range) >= 2 || (Player.GetAutoAttackDamage(Target, true) < Target.Health && Player.CountEnemysInRange((int)Hydra.Range) == 1)))
     {
         Hydra.Cast();
     }
     if (RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1 && !IsFarm)
     {
         RanduinOmen.Cast();
     }
     if (Youmuu.IsReady() && Player.CountEnemysInRange((int)Orbwalk.GetAutoAttackRange()) >= 1 && !IsFarm)
     {
         Youmuu.Cast();
     }
 }
コード例 #2
0
ファイル: Nasus.cs プロジェクト: ManeXy/MasterSeries
 private void NormalCombo(string Mode)
 {
     if (!targetObj.IsValidTarget())
     {
         return;
     }
     if (ItemBool(Mode, "Q") && Q.IsReady() && Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange(Player, targetObj) + 20)
     {
         var DmgAA = Player.GetAutoAttackDamage(targetObj) * Math.Floor(Q.Instance.Cooldown / 1 / Player.AttackDelay);
         if (Mode == "Harass" || (Mode == "Combo" && (ItemList(Mode, "QMode") == 0 || (ItemList(Mode, "QMode") == 1 && (CanKill(targetObj, Q, GetBonusDmg(targetObj)) || !CanKill(targetObj, Q, GetBonusDmg(targetObj) + DmgAA))))))
         {
             Orbwalk.SetAttack(false);
             Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
             Orbwalk.SetAttack(true);
         }
     }
     if (ItemBool(Mode, "W") && W.CanCast(targetObj) && (Mode == "Combo" || (Mode == "Harass" && Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange(Player, targetObj) + 100)))
     {
         W.CastOnUnit(targetObj, PacketCast());
     }
     if (ItemBool(Mode, "E") && E.CanCast(targetObj) && (Mode == "Combo" || (Mode == "Harass" && Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange(Player, targetObj) + 100)))
     {
         E.Cast(targetObj.Position.Randomize(0, (int)E.Width / 2), PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "Item") && RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
     {
         RanduinOmen.Cast();
     }
     if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
     {
         CastIgnite(targetObj);
     }
 }
コード例 #3
0
ファイル: Warwick.cs プロジェクト: ManeXy/MasterSeries
 private void UseItem(Obj_AI_Base Target)
 {
     if (Bilgewater.IsReady())
     {
         Bilgewater.Cast(Target);
     }
     if (BladeRuined.IsReady())
     {
         BladeRuined.Cast(Target);
     }
     if (RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
     {
         RanduinOmen.Cast();
     }
 }
コード例 #4
0
ファイル: DrMundo.cs プロジェクト: ManeXy/MasterSeries
 private void NormalCombo(string Mode)
 {
     if (ItemBool(Mode, "W") && W.IsReady() && Player.HasBuff("BurningAgony") && Player.CountEnemysInRange(500) == 0)
     {
         W.Cast(PacketCast());
     }
     if (!targetObj.IsValidTarget())
     {
         return;
     }
     if (ItemBool(Mode, "W") && W.IsReady())
     {
         if (Player.HealthPercentage() >= ItemSlider(Mode, "WAbove"))
         {
             if (Player.Distance3D(targetObj) <= W.Range + 60)
             {
                 if (!Player.HasBuff("BurningAgony"))
                 {
                     W.Cast(PacketCast());
                 }
             }
             else if (Player.HasBuff("BurningAgony"))
             {
                 W.Cast(PacketCast());
             }
         }
         else if (Player.HasBuff("BurningAgony"))
         {
             W.Cast(PacketCast());
         }
     }
     if (ItemBool(Mode, "Q") && Q.CanCast(targetObj))
     {
         CastSkillShotSmite(Q, targetObj);
     }
     if (ItemBool(Mode, "E") && E.IsReady() && Orbwalk.InAutoAttackRange(targetObj))
     {
         E.Cast(PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "Item") && RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
     {
         RanduinOmen.Cast();
     }
     if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
     {
         CastIgnite(targetObj);
     }
 }
コード例 #5
0
ファイル: Maokai.cs プロジェクト: ManeXy/MasterSeries
 private void NormalCombo(string Mode)
 {
     if (!targetObj.IsValidTarget())
     {
         return;
     }
     if (ItemBool(Mode, "E") && E.CanCast(targetObj))
     {
         E.Cast(targetObj.Position.Extend(Player.Position, Player.Distance3D(targetObj) <= E.Range - 100 ? -100 : 0), PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "R") && R.CanCast(targetObj))
     {
         if (ItemBool(Mode, "RKill") && Player.HasBuff("MaokaiDrain") && (CanKill(targetObj, R, GetRDmg(targetObj)) || ObjectManager.Get <Obj_AI_Hero>().Count(i => i.IsValidTarget(R.Range) && CanKill(i, R, GetRDmg(i)) && i != targetObj) >= 1))
         {
             R.Cast(PacketCast());
         }
         if (Player.ManaPercentage() >= ItemSlider(Mode, "RAbove"))
         {
             if (!Player.HasBuff("MaokaiDrain"))
             {
                 R.Cast(PacketCast());
             }
         }
         else if (Player.HasBuff("MaokaiDrain"))
         {
             R.Cast(PacketCast());
         }
     }
     if (ItemBool(Mode, "W") && W.CanCast(targetObj) && (Mode == "Combo" || (Mode == "Harass" && Player.HealthPercentage() >= ItemSlider(Mode, "WAbove"))))
     {
         W.CastOnUnit(targetObj, PacketCast());
     }
     if (ItemBool(Mode, "Q") && Q.CanCast(targetObj))
     {
         Q.Cast(targetObj.Position, PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "Item") && RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
     {
         RanduinOmen.Cast();
     }
     if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
     {
         CastIgnite(targetObj);
     }
 }
コード例 #6
0
ファイル: Garen.cs プロジェクト: ManeXy/MasterSeries
 private void NormalCombo(string Mode)
 {
     if (!targetObj.IsValidTarget())
     {
         return;
     }
     if (ItemBool(Mode, "Q") && Q.IsReady() && Player.Distance3D(targetObj) <= ((Mode == "Harass") ? Orbwalk.GetAutoAttackRange(Player, targetObj) + 20 : 800) && (Mode == "Harass" || (Mode == "Combo" && !Orbwalk.InAutoAttackRange(targetObj))))
     {
         if (Mode == "Harass")
         {
             Orbwalk.SetAttack(false);
             Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
             Orbwalk.SetAttack(true);
         }
         else
         {
             Q.Cast(PacketCast());
         }
     }
     if (ItemBool(Mode, "E") && E.CanCast(targetObj) && !Player.HasBuff("GarenE") && !Player.HasBuff("GarenQBuff"))
     {
         E.Cast(PacketCast());
     }
     if (ItemBool(Mode, "W") && W.IsReady() && Orbwalk.InAutoAttackRange(targetObj) && Player.HealthPercentage() <= ItemSlider(Mode, "WUnder"))
     {
         W.Cast(PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "R") && ItemBool("Ultimate", targetObj.ChampionName) && R.CanCast(targetObj) && CanKill(targetObj, R))
     {
         R.CastOnUnit(targetObj, PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "Item") && RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
     {
         RanduinOmen.Cast();
     }
     if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
     {
         CastIgnite(targetObj);
     }
 }
コード例 #7
0
ファイル: Shen.cs プロジェクト: ManeXy/MasterSeries
 private void NormalCombo(string Mode)
 {
     if (!targetObj.IsValidTarget())
     {
         return;
     }
     if (Mode == "Combo" && ItemBool(Mode, "Item"))
     {
         if (RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
         {
             RanduinOmen.Cast();
         }
         if (Deathfire.IsReady())
         {
             Deathfire.Cast(targetObj);
         }
         if (Blackfire.IsReady())
         {
             Blackfire.Cast(targetObj);
         }
     }
     if (ItemBool(Mode, "E") && E.CanCast(targetObj) && (Mode == "Combo" || (Mode == "Harass" && Player.HealthPercentage() >= ItemSlider(Mode, "EAbove"))))
     {
         E.Cast(targetObj.Position.Extend(Player.Position, Player.Distance3D(targetObj) <= E.Range - 100 ? -100 : 0), PacketCast());
     }
     if (ItemBool(Mode, "Q") && Q.CanCast(targetObj))
     {
         Q.CastOnUnit(targetObj, PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "W") && W.IsReady() && Orbwalk.InAutoAttackRange(targetObj) && Player.HealthPercentage() <= ItemSlider(Mode, "WUnder"))
     {
         W.Cast(PacketCast());
     }
     if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
     {
         CastIgnite(targetObj);
     }
 }
コード例 #8
0
        private void NormalCombo(string Mode)
        {
            if (!targetObj.IsValidTarget())
            {
                return;
            }
            if (ItemBool(Mode, "Q") && Q.IsReady() && Player.Distance3D(targetObj) <= ((Mode == "Combo") ? 800 : Orbwalk.GetAutoAttackRange(Player, targetObj) + 30) && !Player.HasBuff("PowerBall"))
            {
                if ((ItemBool(Mode, "E") && E.IsReady() && !E.InRange(targetObj)) || !Player.HasBuff("DefensiveBallCurl"))
                {
                    Q.Cast(PacketCast());
                }
            }
            if (ItemBool(Mode, "W") && W.IsReady() && Orbwalk.InAutoAttackRange(targetObj) && !Player.HasBuff("PowerBall"))
            {
                W.Cast(PacketCast());
            }
            if (ItemBool(Mode, "E") && E.CanCast(targetObj) && !Player.HasBuff("PowerBall"))
            {
                switch (ItemList(Mode, "EMode"))
                {
                case 0:
                    E.CastOnUnit(targetObj, PacketCast());
                    break;

                case 1:
                    if (!ItemBool(Mode, "W") || (ItemBool(Mode, "W") && Player.HasBuff("DefensiveBallCurl")))
                    {
                        E.CastOnUnit(targetObj, PacketCast());
                    }
                    break;
                }
            }
            if (Mode == "Combo" && ItemBool(Mode, "R") && R.IsReady())
            {
                switch (ItemList(Mode, "RMode"))
                {
                case 0:
                    if (R.InRange(targetObj))
                    {
                        R.Cast(PacketCast());
                    }
                    break;

                case 1:
                    if (Player.CountEnemysInRange((int)R.Range) >= ItemSlider(Mode, "RCount"))
                    {
                        R.Cast(PacketCast());
                    }
                    break;
                }
            }
            if (Mode == "Combo" && ItemBool(Mode, "Item") && RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
            {
                RanduinOmen.Cast();
            }
            if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
            {
                CastIgnite(targetObj);
            }
        }
コード例 #9
0
ファイル: Amumu.cs プロジェクト: ManeXy/MasterSeries
        private void NormalCombo(string Mode)
        {
            if (ItemBool(Mode, "W") && W.IsReady() && Player.HasBuff("AuraofDespair") && Player.CountEnemysInRange(500) == 0)
            {
                W.Cast(PacketCast());
            }
            if (!targetObj.IsValidTarget())
            {
                return;
            }
            if (Mode == "Combo" && ItemBool(Mode, "Q") && Q.IsReady())
            {
                var nearObj = ObjectManager.Get <Obj_AI_Base>().Where(i => i.IsValidTarget(Q.Range) && !(i is Obj_AI_Turret) && i.CountEnemysInRange((int)R.Range - 20) >= ItemSlider(Mode, "RAbove") && Q.GetPrediction(i).Hitchance >= HitChance.Medium).OrderBy(i => i.CountEnemysInRange((int)R.Range));
                if (ItemBool(Mode, "R") && R.IsReady() && ItemList(Mode, "RMode") == 1 && nearObj.Count() > 0)
                {
                    foreach (var Obj in nearObj)
                    {
                        Q.CastIfHitchanceEquals(Obj, HitChance.VeryHigh, PacketCast());
                    }
                }
                else if (Q.InRange(targetObj) && (CanKill(targetObj, Q) || !Orbwalk.InAutoAttackRange(targetObj)))
                {
                    CastSkillShotSmite(Q, targetObj);
                }
            }
            if (ItemBool(Mode, "W") && W.IsReady())
            {
                if (Player.ManaPercentage() >= ItemSlider(Mode, "WAbove"))
                {
                    if (Player.Distance3D(targetObj) <= W.Range + 60)
                    {
                        if (!Player.HasBuff("AuraofDespair"))
                        {
                            W.Cast(PacketCast());
                        }
                    }
                    else if (Player.HasBuff("AuraofDespair"))
                    {
                        W.Cast(PacketCast());
                    }
                }
                else if (Player.HasBuff("AuraofDespair"))
                {
                    W.Cast(PacketCast());
                }
            }
            if (ItemBool(Mode, "E") && E.CanCast(targetObj))
            {
                E.Cast(PacketCast());
            }
            if (Mode == "Combo" && ItemBool(Mode, "R") && R.IsReady())
            {
                switch (ItemList(Mode, "RMode"))
                {
                case 0:
                    if (R.InRange(targetObj) && CanKill(targetObj, R))
                    {
                        R.Cast(PacketCast());
                    }
                    break;

                case 1:
                    var Obj = ObjectManager.Get <Obj_AI_Hero>().Where(i => i.IsValidTarget(R.Range));
                    if (Obj.Count() > 0 && (Obj.Count() >= ItemSlider(Mode, "RAbove") || (Obj.Count() >= 2 && Obj.Count(i => CanKill(i, R)) >= 1)))
                    {
                        R.Cast(PacketCast());
                    }
                    break;
                }
            }
            if (Mode == "Combo" && ItemBool(Mode, "Item") && RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1)
            {
                RanduinOmen.Cast();
            }
            if (Mode == "Combo" && ItemBool(Mode, "Ignite") && IgniteReady())
            {
                CastIgnite(targetObj);
            }
        }