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).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user