\#wizkill fixes

Remove 'I' for remembered, unseen monster if it is successfully killed
as well as when a kill attempt reveals that there is nothing there.

When killing engulfer, don't report it to be "unseen" since hero is
able to recognized it by touch.
This commit is contained in:
PatR
2022-08-19 07:35:58 -07:00
parent d5eaee6c2e
commit 091c3333e9

View File

@@ -1299,12 +1299,18 @@ wiz_kill(void)
mtmp = m_at(cc.x, cc.y);
}
/* whether there's an unseen monster here or not, player will know
that there's no monster here after the kill or failed attempt;
let hero know too */
(void) unmap_invisible(cc.x, cc.y);
if (mtmp) {
/* we don't require that the monster be seen or sensed so
we issue our own message in order to name it in case it
isn't; note that if it triggers other kills, those might
be referred to as "it" */
int tame = !!mtmp->mtame, seen = canspotmon(mtmp),
int tame = !!mtmp->mtame,
seen = (canspotmon(mtmp) || (u.uswallow && mtmp == u.ustuck)),
flgs = (SUPPRESS_IT | SUPPRESS_HALLUCINATION
| ((tame && has_mgivenname(mtmp)) ? SUPPRESS_SADDLE
: 0)),
@@ -1332,7 +1338,6 @@ wiz_kill(void)
}
} else {
There("is no monster there.");
(void) unmap_invisible(cc.x, cc.y);
break;
}
}