Пример #1
0
        public override async Task <bool> CombatBuff()
        {
            if (!Common_Utils.InActiveInstance() || Target == null)
            {
                return(false);
            }

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

            Logger.DebugLog("Pulsing CombatBuff");

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

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

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

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

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

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

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

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

            case "Mikoto":
                if (HealTarget() != null)
                {
                    return(await MikotoRotation.Heal());
                }

                return(await MikotoRotation.CombatBuff());

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

            case "Remiel":
                if (HealTarget() != null)
                {
                    return(await RemielRotation.Heal());
                }

                return(await RemielRotation.CombatBuff());

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

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

            case "Surito":
                if (HealTarget() != null)
                {
                    return(await SuritoRotation.Heal());
                }

                return(await SuritoRotation.CombatBuff());

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

            return(false);
        }