Пример #1
0
        public virtual bool ShouldSimulacrum()
        {
            if (!Skills.Necromancer.Simulacrum.CanCast())
            {
                return(false);
            }

            var elite = Targeting.BestLOSEliteInRange(65f);

            if (elite == null || Skills.Necromancer.Simulacrum.TimeSinceUse < 10000 || Player.PrimaryResourcePct < 0.90)
            {
                return(false);
            }

            //Trying to alternate cooldowns
            if (Skills.Necromancer.Frailty.CanCast() && elite.IsChampion ||
                Skills.Necromancer.Decrepify.CanCast() && elite.IsElite)
            {
                return(false);
            }

            Core.Logger.Error(LogCategory.Routine,
                              $"[Simulaccrum] - Because of Elite {elite}.");
            return(true);
        }
        public virtual bool ShouldLandOfTheDead()
        {
            if (!Skills.Necromancer.LandOfTheDead.CanCast() || Skills.Necromancer.Simulacrum.IsActive && !Skills.Necromancer.Simulacrum.CanCast())
            {
                return(false);
            }
            var elite = Targeting.BestLOSEliteInRange(65f);

            if (elite == null || Skills.Necromancer.LandOfTheDead.TimeSinceUse < 10000)
            {
                return(false);
            }

            Core.Logger.Error(LogCategory.Routine,
                              $"[Land of the Dead] - Because of Elite {elite}.");
            return(true);
        }
        public virtual bool ShouldSimulacrum()
        {
            if (!Skills.Necromancer.Simulacrum.CanCast())
            {
                return(false);
            }

            var elite = Targeting.BestLOSEliteInRange(65f);

            if (elite == null || Skills.Necromancer.Simulacrum.TimeSinceUse < 10000 || Player.PrimaryResourcePct < 0.90)
            {
                return(false);
            }

            Core.Logger.Error(LogCategory.Routine,
                              $"[Simulaccrum] - Because of Elite {elite}.");
            return(true);
        }