mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-29 20:36:09 +01:00
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:
parent
63c6808612
commit
a7ffa85498
3 changed files with 6 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue