Fixed another typo, added a check for !NPC do_gen_comm, and changed do_return to only run autowiz if level changes. --Rumble

This commit is contained in:
Rumble 2008-05-10 19:16:35 +00:00
parent 63c6808612
commit a7ffa85498
3 changed files with 6 additions and 3 deletions

View file

@ -1225,8 +1225,11 @@ void do_cheat(struct char_data *ch)
ACMD(do_return)
{
if (!IS_NPC(ch) && !ch->desc->original) {
int level, newlevel;
level = GET_LEVEL(ch);
do_cheat(ch);
if (!PLR_FLAGGED(ch, PLR_NOWIZLIST))
newlevel = GET_LEVEL(ch);
if (!PLR_FLAGGED(ch, PLR_NOWIZLIST)&& level != newlevel)
run_autowiz();
}