Esempio n. 1
0
        public override async Task <bool> InGameTask()
        {
            // Returning True => go to next tick immediately, execution starts again from top of the tree.
            // Returning False => allow execution to continue to lower hooks. Such as profiles, Adventurer.

            if (await Coordination.WaitForGemUpgraded())
            {
                Log.Info("Leader is going to upgrade gem.");
                return(false);
            }


            if (!AutoFollow.CurrentLeader.IsValid)
            {
                return(false);
            }

            if (!Service.IsConnected || AutoFollow.NumberOfConnectedBots == 0)
            {
                return(false);
            }

            if (await Coordination.WaitForGameStartDelay())
            {
                return(true);
            }

            if (await Coordination.WaitBeforeStartingRift())
            {
                return(true);
            }

            if (await Coordination.WaitAfterChangingWorlds())
            {
                return(true);
            }

            return(false);
        }