Ejemplo n.º 1
0
        public static Composite CreateMageInitialize()
        {
            if (SingularRoutine.CurrentWoWContext == WoWContext.Normal || SingularRoutine.CurrentWoWContext == WoWContext.Battlegrounds)
            {
                Kite.CreateKitingBehavior(CreateSlowMeleeBehavior(), null, null);
            }

            return(null);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// creates a Hunter specific avoidance behavior based upon settings.  will check for safe landing
 /// zones before using disengage or rocket jump.  will additionally do a running away or jump turn
 /// attack while moving away from attacking mob if behaviors provided
 /// </summary>
 /// <param name="nonfacingAttack">behavior while running away (back to target - instants only)</param>
 /// <param name="jumpturnAttack">behavior while facing target during jump turn (instants only)</param>
 /// <returns></returns>
 public static Composite CreateHunterAvoidanceBehavior(Composite nonfacingAttack, Composite jumpturnAttack)
 {
     return(new Decorator(
                ret => !SingularSettings.Instance.DisableAllMovement,
                new PrioritySelector(
                    new Decorator(
                        ret => HunterSettings.UseDisengage,
                        Common.CreateDisengageBehavior()
                        ),
                    new Decorator(ret => Common.NextDisengageAllowed <= DateTime.Now,
                                  new PrioritySelector(
                                      Kite.CreateKitingBehavior(nonfacingAttack, jumpturnAttack),
                                      CreateHunterBackPedal()
                                      )
                                  )
                    )
                ));
 }