Example #1
0
        public static bool Execution()
        {
            if (Process.attackCount <= 0)
            {
                Outputs.Log("不需要战斗");
                return(false);
            }
            if (Process.watiFix)
            {
                Outputs.Log("等待空船坞修理中");
                return(false);
            }
            if (skipAttact)
            {
                Outputs.Log("跳过战斗开始等待");
                skipAttact = false;
                return(false);
            }
            try
            {
                SwitchScene.HomeToAttackChoice();
                SwitchScene.AttackChoiceToSeaAreaChoice();
                ChoiceSeaArea();
                ChoicePoint();
                ChoiceTeam();
                CheckTeam();
                Battle();
                Process.SetAttackCount(Process.attackCount - 1);
            }
            catch (AttackException)
            {
            }

            return(true);
        }