Пример #1
0
        public bool Nuke()
        {
            int oldBoss = GetCurrentBoss();

            if (oldBoss < lastBoss)
            {
                lastBoss = -1;
            }

            window.Log($"Nuke Boss");
            window.Click(FightBossConstants.pointPageFightBoss, false, true);
            window.Click(FightBossConstants.pointNuke, false, false);
            window.Click(FightBossConstants.pointFight, false, false);
            window.Wait(5);
            int newBoss = GetCurrentBoss();

            if (newBoss != lastBoss)
            {
                window.Log($"New Boss: {newBoss, 3}");
            }
            int lastBossForStage = lastBoss;

            lastBoss = newBoss;

            return(newStage(lastBossForStage, newBoss));
        }