Minor updates. --Rumble
This commit is contained in:
@@ -1960,7 +1960,7 @@ static void perform_immort_invis(struct char_data *ch, int level)
|
|||||||
struct char_data *tch;
|
struct char_data *tch;
|
||||||
|
|
||||||
for (tch = world[IN_ROOM(ch)].people; tch; tch = tch->next_in_room) {
|
for (tch = world[IN_ROOM(ch)].people; tch; tch = tch->next_in_room) {
|
||||||
if (tch == ch)
|
if (tch == ch || IS_NPC(tch))
|
||||||
continue;
|
continue;
|
||||||
if (GET_ADMLEVEL(tch) >= GET_INVIS_LEV(ch) && GET_ADMLEVEL(tch) < level)
|
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,
|
act("You blink and suddenly realize that $n is gone.", FALSE, ch, 0,
|
||||||
|
|||||||
@@ -1074,7 +1074,7 @@ void ibtedit_parse(struct descriptor_data *d, char *arg)
|
|||||||
case IBTEDIT_FLAGS:
|
case IBTEDIT_FLAGS:
|
||||||
if ((i = atoi(arg)) <= 0)
|
if ((i = atoi(arg)) <= 0)
|
||||||
break;
|
break;
|
||||||
else if (i <= NUM_MOB_FLAGS)
|
else if (i <= NUM_IBT_FLAGS)
|
||||||
TOGGLE_BIT_AR(IBT_FLAGS(OLC_IBT(d)), (i - 1));
|
TOGGLE_BIT_AR(IBT_FLAGS(OLC_IBT(d)), (i - 1));
|
||||||
ibtedit_disp_flags(d);
|
ibtedit_disp_flags(d);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -912,7 +912,7 @@ void mag_alter_objs(int level, struct char_data *ch, struct obj_data *obj,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPELL_INVISIBLE:
|
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);
|
SET_BIT_AR(GET_OBJ_EXTRA(obj), ITEM_INVISIBLE);
|
||||||
to_char = "$p vanishes.";
|
to_char = "$p vanishes.";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user