Exemple #1
0
        public virtual bool ShouldCorpseExplosion()
        {
            if (!Skills.Necromancer.CorpseExplosion.CanCast())
            {
                return(false);
            }
            var corpseCount = Targeting.CorpseCountNearLocation(Target.Position, 10f);

            if (corpseCount < 3 || Skills.Necromancer.CorpseExplosion.TimeSinceUse < 2000)
            {
                return(false);
            }
            Core.Logger.Error(LogCategory.Routine,
                              $"[CorpseExplosion] - ({corpseCount}) Corpses to Explode.");
            return(true);
        }