From: Ari Johnson Date: Thu, 14 Feb 2008 04:50:39 +0000 (+0000) Subject: Bugfix: attribute flag mortal_dark now works again X-Git-Tag: 0.72p4~7 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=1fc382a65e1148b891eaaf1e1e19dfec45bd2873;p=cobramush.git Bugfix: attribute flag mortal_dark now works again (cherry picked from commit 9d42a506debdf9d89d57f1ada81fd8bed88e6268) --- diff --git a/src/attrib.c b/src/attrib.c index 29ed6b7..636a09f 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -140,6 +140,9 @@ int cannot_write_this_attr_internal(dbref player, ATTR *attr, dbref obj, char sa if((AL_FLAGS(attr) & AF_PRIVILEGE) && !(Prived(player) || (Inherit_Powers(player) && Prived(Owner(player))))) return 1; + if(AF_Mdark(attr) && !(Admin(player) + || (Inherit_Powers(player) && Admin(Owner(player))))) + return 1; if(ns_chk && catchall && !controls(player, AL_CREATOR(catchall)) && AL_WLock(catchall) != TRUE_BOOLEXP && !eval_boolexp(player, AL_WLock(catchall), obj, NULL))