Пример #1
0
        public override void ApplyDefaultSettings()
        {
            base.ApplyDefaultSettings();

            var feralOrNoneSpecConditions = new ConditionDependencyList(
                new BooleanCondition(Settings.RejuvenationEnabled),
                new TargetHealthRangeCondition(TargetType.Me, 0.0, Settings.RejuvenationMinHealth)
                );

            Conditions.Add(new ConditionOrList(
                               new ConditionTestSwitchCondition(
                                   new MyExpectedSpecializationCondition(WoWSpec.None),
                                   feralOrNoneSpecConditions,
                                   false
                                   ),
                               new ConditionTestSwitchCondition(
                                   new MyExpectedSpecializationCondition(WoWSpec.DruidFeral),
                                   feralOrNoneSpecConditions,
                                   false
                                   ),
                               new ConditionTestSwitchCondition(
                                   new MyExpectedSpecializationCondition(WoWSpec.DruidGuardian),
                                   new ConditionDependencyList(
                                       new BooleanCondition(Settings.GuardianRejuvenationEnabled),
                                       new TargetHealthRangeCondition(TargetType.Me, 0.0, Settings.GuardianRejuvenationMinHealth)
                                       ),
                                   false
                                   )
                               ));

            Conditions.Add(new TargetDoesNotHaveAuraCondition(TargetType.Me, SpellBook.Rejuvenation));
            Conditions.Add(new TargetDoesNotHaveAuraCondition(TargetType.Me, SpellBook.Prowl));
        }
Пример #2
0
        public override void ApplyDefaultSettings()
        {
            base.ApplyDefaultSettings();

            var feralOrNoneSpecConditions = new ConditionDependencyList(
                new BooleanCondition(Settings.RejuvenationEnabled),
                new TargetHealthRangeCondition(TargetType.Me, 0.0, Settings.RejuvenationMinHealth)
                );

            Conditions.Add(new ConditionOrList(
                new ConditionTestSwitchCondition(
                    new MyExpectedSpecializationCondition(WoWSpec.None),
                    feralOrNoneSpecConditions,
                    false
                    ),
                new ConditionTestSwitchCondition(
                    new MyExpectedSpecializationCondition(WoWSpec.DruidFeral),
                    feralOrNoneSpecConditions,
                    false
                    ),
                new ConditionTestSwitchCondition(
                    new MyExpectedSpecializationCondition(WoWSpec.DruidGuardian),
                    new ConditionDependencyList(
                        new BooleanCondition(Settings.GuardianRejuvenationEnabled),
                        new TargetHealthRangeCondition(TargetType.Me, 0.0, Settings.GuardianRejuvenationMinHealth)
                        ),
                    false
                    )
                ));

            Conditions.Add(new TargetDoesNotHaveAuraCondition(TargetType.Me, SpellBook.Rejuvenation));
            Conditions.Add(new TargetDoesNotHaveAuraCondition(TargetType.Me, SpellBook.Prowl));
        }