Example #1
0
        //------------------- (devil) -------------------

        private void Game_OnTick(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            Target = TargetSelector.GetTarget(_range, _damageType);

            //Dragon, Baron, KS
            summoners.AutoSmite();

            //Potions time
            if (!(Player.IsInShopRange() || Player.HasBuff("RegenerationPotion") || Player.HasBuff("HealthPotion") || Player.HasBuff("BiscuitPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("CorruptingPotion")))
            {
                itens.AutoHealthPotion();
                itens.AutoBiscuitPotion();
                itens.AutoCorruptingPotion();
                itens.AutoHuntersPotion();
                itens.AutoRefillablePotion();
            }

            if (Target != null && Target.IsValidTarget() && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                //Combo mode 3:)

                //Summoners usage
                {
                    //Ghost usage
                    summoners.AutoGhost();

                    //Exhaust usage
                    summoners.AutoExhaust();

                    //Smite usage
                    summoners.AutoSmiteCombo();
                }

                //Offensives
                itens.AutoBilgeBtrk();
                itens.AutoHextechGunBlade();
                itens.AutoYoumuusGhostBlade();

                itens.AutoRanduin();

                itens.AutoRighteousGlory();
                itens.AutoTalisma();
            }

            if (Player.CountEnemiesInRange(1350) > 0)
            {
                //Defensives

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
                {
                    summoners.AutoSmiteFlee();

                    itens.AutoFleeItens();
                }

                itens.AutoScimitarQSS();
                itens.AutoZhonya();
                itens.AutoSeraphEmbrace();
                itens.AutoSolari();
                itens.AutoMikael();
                itens.AutoFaceOfTheMountain();

                //Summoners
                summoners.AutoIgnite();
                summoners.AutoCleanse();
                summoners.AutoBarrier();
                summoners.AutoHeal();
            }

            //Lane Clear
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                itens.AutoLaneItens(); //Items Usage
            }
            //Jungle Clear
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                //Smiting mobs
                summoners.AutoSmiteMob();

                //Items usage
                itens.AutoJungleItens();
            }

            return;
        }