]> granicus.if.org Git - nethack/commitdiff
high priest message
authorarromdee <arromdee>
Thu, 17 Jan 2002 03:04:04 +0000 (03:04 +0000)
committerarromdee <arromdee>
Thu, 17 Jan 2002 03:04:04 +0000 (03:04 +0000)
Fix bug: Create high priest, let it kill you.  Get "kiled by the high priest".

doc/fixes33.2
src/end.c

index fbe6e78bddf8feaa885e2bd43174061863aca600..4b1d63bad3ee693c20b1dc93e0921a65a0828bb0 100644 (file)
@@ -387,6 +387,7 @@ monsters without ranged spells don't print curse messages for ranged spells
 going down to floor using > should set Heart of Ahriman invocation timeout
 riding a steed into water kills the steed if it cannot swim, with penalties
 gaze attacks now stop occupation
+proper death message when killed by "plain" high priest
 
 
 Platform- and/or Interface-Specific Fixes
index 2986ade84caf0611fb8df1ad7fef981deea0e33e..d1643e67f4d15175c63e9eb105a236afd734b30f 100644 (file)
--- a/src/end.c
+++ b/src/end.c
@@ -185,7 +185,9 @@ register struct monst *mtmp;
        You("die...");
        mark_synch();   /* flush buffered screen output */
        buf[0] = '\0';
-       if ((mtmp->data->geno & G_UNIQ) != 0) {
+       /* "killed by the high priest of Crom" is okay, "killed by the high
+          priest" alone isn't */
+       if ((mtmp->data->geno & G_UNIQ) != 0 && !(mtmp->data == &mons[PM_HIGH_PRIEST] && !mtmp->ispriest)) {
            if (!type_is_pname(mtmp->data))
                Strcat(buf, "the ");
            killer_format = KILLED_BY;