]> granicus.if.org Git - nethack/commitdiff
B15004 - Master Assassin's attack
authorcohrs <cohrs>
Thu, 19 Dec 2002 02:09:35 +0000 (02:09 +0000)
committercohrs <cohrs>
Thu, 19 Dec 2002 02:09:35 +0000 (02:09 +0000)
hitmu was trying, and failing, to re-implement parts of x_monnam().  Changed
it to use Monnam(), which produces more detailed messages than before in
some cases, but seems better since its messages are now more consistent
with hitmsg() and prints "The" in this specific case.

src/mhitu.c

index 4891148358f546f83911cf71870ecbada0f39a30..4eafbe9abaa4e2034cde30857584b96bc652d956 100644 (file)
@@ -988,12 +988,9 @@ hitmu(mtmp, mattk)
 dopois:
                hitmsg(mtmp, mattk);
                if (uncancelled && !rn2(8)) {
-                       Sprintf(buf, "%s %s",
-                               !canspotmon(mtmp) ? "Its" :
-                               Hallucination ? s_suffix(rndmonnam()) :
-                                               s_suffix(mdat->mname),
-                               mpoisons_subj(mtmp, mattk));
-                       poisoned(buf, ptmp, mdat->mname, 30);
+                   Sprintf(buf, "%s %s",
+                           s_suffix(Monnam(mtmp)), mpoisons_subj(mtmp, mattk));
+                   poisoned(buf, ptmp, mdat->mname, 30);
                }
                break;
            case AD_DRIN: