Exemplo n.º 1
0
        protected virtual bool ShouldDecrepify(out TrinityActor target)
        {
            target = null;
            if (!Skills.Necromancer.Decrepify.CanCast())
            {
                return(false);
            }

            if (Player.PrimaryResource < PrimaryEnergyReserve)
            {
                return(false);
            }

            // todo: investigate why cant find the power on monsters.

            // anti-spam workaround
            if (Skills.Necromancer.Decrepify.TimeSinceUse < 4000)
            {
                return(false);
            }

            target = TargetUtil.BestTargetWithoutDebuff(60f, SNOPower.P6_Necro_Decrepify);
            return(target != null);
        }