Prevent ghosts from being renamed

(via xNetHack)
This commit is contained in:
Pasi Kallinen
2020-10-18 20:20:55 +03:00
parent f38cb63714
commit 3a31587ca9
2 changed files with 3 additions and 1 deletions

View File

@@ -1196,7 +1196,8 @@ do_mname()
|| mtmp->data->msound <= MS_ANIMAL)) {
if (!alreadynamed(mtmp, monnambuf, buf))
verbalize("I'm %s, not %s.", shkname(mtmp), buf);
} else if (mtmp->ispriest || mtmp->isminion || mtmp->isshk) {
} else if (mtmp->ispriest || mtmp->isminion || mtmp->isshk
|| mtmp->data == &mons[PM_GHOST]) {
if (!alreadynamed(mtmp, monnambuf, buf))
pline("%s will not accept the name %s.", upstart(monnambuf), buf);
} else