Exemplo n.º 1
0
        protected virtual bool ShouldSentry(out Vector3 position)
        {
            position = Vector3.Zero;

            if (!Skills.DemonHunter.Sentry.CanCast())
            {
                return(false);
            }

            if (Skills.DemonHunter.Sentry.Charges == 0)
            {
                return(false);
            }

            if (!TargetUtil.AnyMobsInRange(65f))
            {
                return(false);
            }

            if (Player.Summons.DHSentryCount >= MaxSentryCount)
            {
                return(false);
            }

            position = TargetUtil.BestSentryPosition();
            return(position != Vector3.Zero);
        }