Example #1
0
        public static Composite CreateHolyCombatBuffs()
        {
            return(new PrioritySelector(
                       new Decorator(
                           req => !Me.CurrentTarget.IsTrivial(),
                           new PrioritySelector(
                               Common.CreateFadeBehavior(),

                               Spell.BuffSelf("Desperate Prayer", ret => StyxWoW.Me.HealthPercent <= PriestSettings.DesperatePrayerHealth),

                               Common.CreateShadowfiendBehavior(),

                               Common.CreateLeapOfFaithBehavior(),

                               Spell.Cast("Power Infusion", ret => StyxWoW.Me.ManaPercent <= 75 || HealerManager.Instance.TargetList.Any(h => h.HealthPercent < 40))
                               )
                           )
                       ));
        }
Example #2
0
        public static Composite CreateDiscCombatBuffs()
        {
            return(new PrioritySelector(
                       new Decorator(
                           req => !Unit.IsTrivial(Me.CurrentTarget),
                           new PrioritySelector(
                               Common.CreateFadeBehavior(),

                               Spell.BuffSelf("Power Word: Shield",
                                              req => HasReflectiveShield &&
                                              SingularRoutine.CurrentWoWContext == WoWContext.Normal
                                              ),

                               Common.CreateShadowfiendBehavior(),

                               Common.CreateLeapOfFaithBehavior(),

                               // Spell.Cast("Power Word: Solace", req => Me.GotTarget() && Unit.ValidUnit(Me.CurrentTarget) && Me.IsSafelyFacing( Me.CurrentTarget) && Me.CurrentTarget.InLineOfSpellSight )
                               // Spell.Cast(129250, req => Me.GotTarget() && Unit.ValidUnit(Me.CurrentTarget) && Me.IsSafelyFacing(Me.CurrentTarget) && Me.CurrentTarget.InLineOfSpellSight),
                               Spell.CastHack("Schism", req => Me.GotTarget() && Unit.ValidUnit(Me.CurrentTarget) && Me.IsSafelyFacing(Me.CurrentTarget) && Me.CurrentTarget.InLineOfSpellSight)
                               )
                           )
                       ));
        }