From 4aa5bceb1f77e189b3c48d30caa56d831c87581a Mon Sep 17 00:00:00 2001 From: cohrs Date: Mon, 26 Aug 2002 15:31:51 +0000 Subject: [PATCH] B09002 - killing monsters seen by infravision ohitmon was incorrectly using location visibility in a couple places where monster visibility was more appropriate. I'm still not sure about the canspotmon check for destroy vs killed. Similar checks do no appear elsewhere in the code. But at least now the 'destroyed' won't be shown for a seen, living monster. --- src/mthrowu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mthrowu.c b/src/mthrowu.c index d0836c12d..4246a1f1d 100644 --- a/src/mthrowu.c +++ b/src/mthrowu.c @@ -186,7 +186,7 @@ boolean verbose; /* give message(s) even when you can't see what happened */ if (ismimic) seemimic(mtmp); mtmp->msleeping = 0; if (vis) hit(distant_name(otmp,mshot_xname), mtmp, exclam(damage)); - else if (verbose) pline("It is hit%s", exclam(damage)); + else if (verbose) pline("%s is hit%s", Monnam(mtmp), exclam(damage)); if (otmp->opoisoned && is_poisonable(otmp)) { if (resists_poison(mtmp)) { @@ -221,7 +221,7 @@ boolean verbose; /* give message(s) even when you can't see what happened */ if (mtmp->mhp < 1) { if (vis || verbose) pline("%s is %s!", Monnam(mtmp), - (nonliving(mtmp->data) || !vis) + (nonliving(mtmp->data) || !canspotmon(mtmp)) ? "destroyed" : "killed"); /* don't blame hero for unknown rolling boulder trap */ if (!flags.mon_moving && -- 2.40.0