Esempio n. 1
0
        protected override void GatherLooseMobs()
        {
            Stopwatch stopwatch = Stopwatch.StartNew();

            var closestLooseMob = LooseMobs
                                  .OrderBy(x => x.GetDistance)
                                  .FirstOrDefault();

            if (closestLooseMob != null)
            {
                while (stopwatch.Elapsed < TimeSpan.FromSeconds(5))
                {
                    closestLooseMob.TargetEnemy();
                    MovementManager.Face(closestLooseMob);
                    MovementManager.MoveTo(closestLooseMob);
                    if (_taunt.CooldownEnabled)
                    {
                        break;
                    }
                    _taunt.Cast();
                }
            }
        }
Esempio n. 2
0
 protected virtual bool LooseMob()
 {
     return(LooseMobs.Any());
 }