From be810f3edeb246189d77a8c6995828daa3c61712 Mon Sep 17 00:00:00 2001 From: Michael Meyer Date: Thu, 1 Dec 2022 17:56:00 -0500 Subject: [PATCH] Remove canspotmon() requirement from #wizsmell You can attempt to smell a monster at particular coordinates even if you can't see it. Revert the message for the 'can't find a monster there to smell' case to "That is not a monster", as it was before, since the change makes it so that you only reach that line if there genuinely is no monster there (previously it would be reached if there was a hidden or undetected monster on the specified spot). --- src/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index 2ff419d48..da40f94f4 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1944,7 +1944,7 @@ wiz_smell(void) mptr = gy.youmonst.data; is_you = TRUE; } - } else if ((mtmp = m_at(cc.x, cc.y)) && canspotmon(mtmp)) { + } else if ((mtmp = m_at(cc.x, cc.y)) != (struct monst *) 0) { mptr = mtmp->data; } else { mptr = (struct permonst *) 0; @@ -1957,7 +1957,7 @@ wiz_smell(void) pline("%s to give off no smell.", is_you ? "You seem" : "That monster seems"); } else { - You("see no monster there."); + pline("That is not a monster."); } } while (TRUE); return ECMD_OK;