From: nethack.rankin Date: Tue, 20 May 2003 07:33:30 +0000 (+0000) Subject: poisoning prefix X-Git-Tag: MOVE2GIT~1973 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=459cee350ee5c63d1431cf5ec37b09a4c30a959c;p=nethack poisoning prefix Fix a recent killer prefix fix.... --- diff --git a/src/mon.c b/src/mon.c index d49b801da..669466c74 100644 --- a/src/mon.c +++ b/src/mon.c @@ -1979,9 +1979,15 @@ int typ, fatal; pline_The("poison doesn't seem to affect you."); return; } + /* suppress killer prefix if it already has one */ if (!strncmpi(pname, "the ", 4) || !strncmpi(pname, "an ", 3) || - !strncmpi(pname, "a ", 2)) kprefix = KILLED_BY_AN; + !strncmpi(pname, "a ", 2) || + /* ... or if it seems to be a proper name */ + isupper(*pname)) { + /*[ does this need a plural check too? ]*/ + kprefix = KILLED_BY; + } i = rn2(fatal + 20*thrown_weapon); if(i == 0 && typ != A_CHA) { u.uhp = -1;