Esempio n. 1
0
        public static void Combo2()
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);

            // var target = SimpleTs.GetTarget(Q.Range, SimpleTs.DamageType.Physical);
            if (target == null)
            {
                return;
            }
            var dragon = ObjectManager.Get <Obj_AI_Minion>().First(it => it.IsValidTarget(Q.Range));

            if (dragon.Spellbook.IsCastingSpell)
            {
                Q.CastOnUnit(dragon);
            }



            if (bilgeItem.IsReady() && target.IsValidTarget(bilgeItem.Range))
            {
                bilgeItem.Cast(target);
            }
            if (GhostbladeItem.IsReady() && target.IsValidTarget(Q.Range))
            {
                GhostbladeItem.Cast();
            }
            if (target.IsValidTarget(Q.Range) && R.IsReady() && Config.Item("useR").GetValue <bool>())
            {
                R.Cast();
            }
            if (target.IsValidTarget(Q.Range) && Q.IsReady() && Config.Item("useQ").GetValue <bool>())
            {
                Qlogic();
            }
            if (target.IsValidTarget(Q.Range) && E.IsReady() && Config.Item("useE").GetValue <bool>())
            {
                E.Cast();
            }
            else if (target.IsValidTarget(Q.Range) && W.IsReady() && Orbwalking.InAutoAttackRange(target) && Config.Item("useW").GetValue <bool>())
            {
                EloBuddy.Player.IssueOrder(GameObjectOrder.AttackTo, target);
                LeagueSharp.Common.Utility.DelayAction.Add(350, () => W.Cast());
                EloBuddy.Player.IssueOrder(GameObjectOrder.AttackTo, target);
                Orbwalking.ResetAutoAttackTimer();
            }
            if (tiamatItem.IsReady() && target.IsValidTarget(tiamatItem.Range))
            {
                tiamatItem.Cast();
            }
            if (hydraItem.IsReady() && target.IsValidTarget(tiamatItem.Range))
            {
                hydraItem.Cast();
            }
            if (botrkItem.IsReady() && target.IsValidTarget(botrkItem.Range))
            {
                botrkItem.Cast(target);
            }

            if (randuinsItem.IsReady() && target.IsValidTarget(randuinsItem.Range))
            {
                randuinsItem.Cast();
            }
        }
Esempio n. 2
0
        public static void Combo()
        {
            var target  = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);
            var target2 = TargetSelector.GetTarget(Q.Range / 2, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }
            if (R.IsReady() && Config.Item("useR").GetValue <bool>())
            {
                R.Cast();
            }

            if (target.IsValidTarget(Q.Range) &&
                ObjectManager.Player.Spellbook.CanUseSpell((smiteSlot)) == SpellState.Ready && (smitetype() == "s5_summonersmiteplayerganker" || smitetype() == "s5_summonersmiteduel") && Config.Item("useSmite").GetValue <bool>())
            {
                SmiteSlot();
                ObjectManager.Player.Spellbook.CastSpell(smiteSlot, target);
            }


            if (Q.IsReady() && Config.Item("useQ").GetValue <bool>())
            {
                Qlogic();
            }
            if (E.IsReady() && Config.Item("useE").GetValue <bool>() && Orbwalking.InAutoAttackRange(target))
            {
                E.Cast();
            }
            else if (W.IsReady() && Orbwalking.InAutoAttackRange(target) && Config.Item("useW").GetValue <bool>())
            {
                EloBuddy.Player.IssueOrder(GameObjectOrder.AttackTo, target);
                LeagueSharp.Common.Utility.DelayAction.Add(400, () => W.Cast());
                W.Cast();
                EloBuddy.Player.IssueOrder(GameObjectOrder.AttackTo, target);
                Orbwalking.ResetAutoAttackTimer();
            }

            if (tiamatItem.IsReady() && target.IsValidTarget(tiamatItem.Range))
            {
                tiamatItem.Cast();
            }
            if (hydraItem.IsReady() && target.IsValidTarget(tiamatItem.Range))
            {
                hydraItem.Cast();
            }
            if (botrkItem.IsReady() && target.IsValidTarget(botrkItem.Range))
            {
                botrkItem.Cast(target);
            }
            if (bilgeItem.IsReady() && target.IsValidTarget(bilgeItem.Range))
            {
                bilgeItem.Cast(target);
            }
            if (GhostbladeItem.IsReady() && target.IsValidTarget(Q.Range))
            {
                GhostbladeItem.Cast();
            }
            if (randuinsItem.IsReady() && target.IsValidTarget(randuinsItem.Range))
            {
                randuinsItem.Cast();
            }

            //this was magnet, no need with new obwalker

            else if (target2.IsEnemy && target2.IsValidTarget() && !target2.IsMinion && !Player.Spellbook.IsAutoAttacking && !Orbwalking.InAutoAttackRange(target2))
            {
                EloBuddy.Player.IssueOrder(GameObjectOrder.AttackTo, target2);

                LeagueSharp.Common.Utility.DelayAction.Add(400, () => EloBuddy.Player.IssueOrder(GameObjectOrder.AttackUnit, target2));
                EloBuddy.Player.IssueOrder(GameObjectOrder.AttackUnit, target2);
            }
        }