コード例 #1
0
 public static Composite CreateShadowPriestRest()
 {
     return(new PrioritySelector(
                Spell.Resurrect("Resurrection"),
                Rest.CreateDefaultRestBehaviour()
                ));
 }
コード例 #2
0
ファイル: Common.cs プロジェクト: ywjb/Honorbuddy-434
 public static Composite CreateBalanceAndFeralDruidRest()
 {
     return(new PrioritySelector(
                CreateNonRestoHeals(),
                Rest.CreateDefaultRestBehaviour(),
                Spell.Resurrect("Revive")
                ));
 }
コード例 #3
0
ファイル: Restoration.cs プロジェクト: rhoninsk/novas-addons
 public static Composite CreateRestoShamanRest()
 {
     return(new PrioritySelector(
                CreateRestoShamanHealingBuffs(),
                CreateRestoShamanHealingOnlyBehavior(true),
                Rest.CreateDefaultRestBehaviour(),
                Spell.Resurrect("Ancestral Spirit"),
                CreateRestoShamanHealingOnlyBehavior(false, false)
                ));
 }
コード例 #4
0
ファイル: Common.cs プロジェクト: ywjb/Honorbuddy-434
 public static Composite CreateRogueRest()
 {
     return(new PrioritySelector(
                Spell.BuffSelf("Stealth", ret => StyxWoW.Me.HasAura("Food")),
                new Decorator(
                    ret => StyxWoW.Me.HasAura("Vanish") && StyxWoW.Me.CurrentMap.IsContinent,
                    new ActionAlwaysSucceed()),
                Rest.CreateDefaultRestBehaviour()
                ));
 }
コード例 #5
0
ファイル: Elemental.cs プロジェクト: ywjb/Honorbuddy-434
 public static Composite CreateElementalShamanRest()
 {
     return
         (new PrioritySelector(
              new Decorator(
                  ret => !StyxWoW.Me.HasAura("Drink") && !StyxWoW.Me.HasAura("Food"),
                  CreateElementalShamanHeal()),
              Rest.CreateDefaultRestBehaviour(),
              Spell.Resurrect("Ancestral Spirit")
              ));
 }
コード例 #6
0
 public static Composite CreateWarlockRest()
 {
     return(new PrioritySelector(
                new Decorator(
                    ctx => StyxWoW.Me.CastingSpell != null && StyxWoW.Me.CastingSpell.Name.Contains("Summon") && StyxWoW.Me.GotAlivePet,
                    new Action(ctx => SpellManager.StopCasting())),
                Spell.WaitForCast(false),
                Spell.BuffSelf("Life Tap", ret => StyxWoW.Me.ManaPercent < 80 && StyxWoW.Me.HealthPercent > 60 && !StyxWoW.Me.HasAnyAura("Drink", "Food")),
                Spell.BuffSelf("Soul Harvest", ret => (StyxWoW.Me.CurrentSoulShards <= 2 || StyxWoW.Me.HealthPercent <= 55) && !StyxWoW.Me.HasAnyAura("Drink", "Food")),
                Rest.CreateDefaultRestBehaviour()
                ));
 }
コード例 #7
0
 public static Composite CreateHolyPaladinRest()
 {
     return(new PrioritySelector(
                // Heal self before resting. There is no need to eat while we have 100% mana
                CreatePaladinHealBehavior(true),
                // Rest up damnit! Do this first, so we make sure we're fully rested.
                Rest.CreateDefaultRestBehaviour(),
                // Can we res people?
                Spell.Resurrect("Redemption"),
                // Make sure we're healing OOC too!
                CreatePaladinHealBehavior(false, false)));
 }
コード例 #8
0
 public static Composite CreateWarlockRest()
 {
     return(new PrioritySelector(
                new Decorator(
                    ctx => StyxWoW.Me.CastingSpell != null && StyxWoW.Me.CastingSpell.Name == "Summon " + PetManager.WantedPet && StyxWoW.Me.GotAlivePet,
                    new Action(ctx => SpellManager.StopCasting())),
                Spell.WaitForCast(true),
                Spell.BuffSelf("Life Tap", ret => StyxWoW.Me.ManaPercent < 80 && StyxWoW.Me.HealthPercent > 40),
                Spell.BuffSelf("Soul Harvest", ret => StyxWoW.Me.CurrentSoulShards < 2 || StyxWoW.Me.HealthPercent <= 55),
                Rest.CreateDefaultRestBehaviour()
                ));
 }
コード例 #9
0
ファイル: Resto.cs プロジェクト: ywjb/Honorbuddy-434
 public static Composite CreateRestoDruidHealRest()
 {
     return(new PrioritySelector(
                Spell.WaitForCast(),
                // Heal self before resting. There is no need to eat while we have 100% mana
                CreateRestoDruidHealOnlyBehavior(true),
                // Rest up damnit! Do this first, so we make sure we're fully rested.
                Rest.CreateDefaultRestBehaviour(),
                // Can we res people?
                Spell.Resurrect("Revive"),
                // Make sure we're healing OOC too!
                CreateRestoDruidHealOnlyBehavior(false, false)));
 }