--- deliantra/server/server/attack.c 2006/02/22 18:53:56 1.4 +++ deliantra/server/server/attack.c 2006/03/24 10:51:18 1.5 @@ -1655,6 +1655,16 @@ if (QUERY_FLAG (op, FLAG_WIZ) || QUERY_FLAG (op, FLAG_NO_DAMAGE)) return 0; +#ifdef PROHIBIT_PLAYERKILL + if (op->type == PLAYER) { + object *owner = get_owner (hitter); + if (!owner) owner = hitter; + if (owner->type == PLAYER && !op_on_battleground (op, 0, 0)) { + return 0; + } + } +#endif + op_tag = op->count; hitter_tag = hitter->count;