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(); } } }
protected virtual bool LooseMob() { return(LooseMobs.Any()); }