コード例 #1
0
        public override async Task <bool> Rest()
        {
            if (!Common_Utils.InActiveInstance())
            {
                return(false);
            }

            if (Me.IsCasting)
            {
                return(await DodgeManager.DodgeThis(Me.SpellCastInfo.SpellData, CurrentTarget, CastedAura, IsDot, IsBuff, IsHealingSpell));
            }

            Logger.DebugLog("Pulsing Rest");

            switch (MainSettingsModel.Instance.CurrentRoutine)
            {
            case "Barret":
                return(await BarretRotation.Rest());

            case "Beatrix":
                return(await BeatrixRotation.Rest());

            case "Cecil":
                return(await CecilRotation.Rest());

            case "Cyan":
                return(await CyanRotation.Rest());

            case "Edward":
                return(await EdwardRotation.Rest());

            case "Eiko":
                return(await EikoRotation.Rest());

            case "Elayne":
                return(await ElayneRotation.Rest());

            case "Freya":
                return(await FreyaRotation.Rest());

            case "Mikoto":
                return(await MikotoRotation.Rest());

            case "Paine":
                return(await PaineRotation.Rest());

            case "Remiel":
                return(await RemielRotation.Rest());

            case "Sabin":
                return(await SabinRotation.Rest());

            case "Shadow":
                return(await ShadowRotation.Rest());

            case "Surito":
                return(await SuritoRotation.Rest());

            case "Vivi":
                return(await ViviRotation.Rest());
            }

            return(false);
        }