Beispiel #1
0
        public virtual bool ShouldDevour()
        {
            if (!Skills.Necromancer.Devour.CanCast())
            {
                return(false);
            }
            var corpseCount = Targeting.CorpseCount(60f);

            if (Player.PrimaryResourceMax - Player.PrimaryResource > corpseCount * 10 &&
                Player.PrimaryResourcePct > 0.65 ||
                corpseCount < 3)
            {
                return(false);
            }
            Core.Logger.Error(LogCategory.Routine,
                              $"[Devour] - ({corpseCount}) Corpses with ({Player.PrimaryResourceMax - Player.PrimaryResource}) Essence Deficit.");
            return(true);
        }