From 34db0b0dd3a031b12f0ae275a8593d39b27026d4 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 29 Jul 2022 15:55:53 -0700 Subject: [PATCH] \#wizkill tweak If wizard mode player targets 'I' with #wizkill and there is no monster there, remove that 'I'. --- src/cmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 87f869dc9..b89668bcb 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1281,8 +1281,9 @@ wiz_kill(void) isn't; note that if it triggers other kills, those might be referred to as "it" */ int tame = !!mtmp->mtame, seen = canspotmon(mtmp), - flgs = SUPPRESS_IT | SUPPRESS_HALLUCINATION - | ((tame && has_mgivenname(mtmp)) ? SUPPRESS_SADDLE : 0), + flgs = (SUPPRESS_IT | SUPPRESS_HALLUCINATION + | ((tame && has_mgivenname(mtmp)) ? SUPPRESS_SADDLE + : 0)), articl = tame ? ARTICLE_YOUR : seen ? ARTICLE_THE : ARTICLE_A; const char *adjs = tame ? (!seen ? "poor, unseen" : "poor") : (!seen ? "unseen" : (const char *) 0); @@ -1307,6 +1308,7 @@ wiz_kill(void) } } else { There("is no monster there."); + (void) unmap_invisible(cc.x, cc.y); break; } }