Minor updates. --Rumble

This commit is contained in:
Rumble 2011-03-18 23:29:38 +00:00
parent bf0539a425
commit 231a1a2dcd
3 changed files with 3 additions and 3 deletions

View file

@ -1960,7 +1960,7 @@ static void perform_immort_invis(struct char_data *ch, int level)
struct char_data *tch;
for (tch = world[IN_ROOM(ch)].people; tch; tch = tch->next_in_room) {
if (tch == ch)
if (tch == ch || IS_NPC(tch))
continue;
if (GET_ADMLEVEL(tch) >= GET_INVIS_LEV(ch) && GET_ADMLEVEL(tch) < level)
act("You blink and suddenly realize that $n is gone.", FALSE, ch, 0,

View file

@ -1074,7 +1074,7 @@ void ibtedit_parse(struct descriptor_data *d, char *arg)
case IBTEDIT_FLAGS:
if ((i = atoi(arg)) <= 0)
break;
else if (i <= NUM_MOB_FLAGS)
else if (i <= NUM_IBT_FLAGS)
TOGGLE_BIT_AR(IBT_FLAGS(OLC_IBT(d)), (i - 1));
ibtedit_disp_flags(d);
return;

View file

@ -912,7 +912,7 @@ void mag_alter_objs(int level, struct char_data *ch, struct obj_data *obj,
}
break;
case SPELL_INVISIBLE:
if (!OBJ_FLAGGED(obj, ITEM_NOINVIS) || !OBJ_FLAGGED(obj, ITEM_INVISIBLE)) {
if (!OBJ_FLAGGED(obj, ITEM_NOINVIS) && !OBJ_FLAGGED(obj, ITEM_INVISIBLE)) {
SET_BIT_AR(GET_OBJ_EXTRA(obj), ITEM_INVISIBLE);
to_char = "$p vanishes.";
}