another vision-related message

don't just say "the knife misses" when you can actually see the monster
with infravision by testing using the correct function
This commit is contained in:
cohrs
2002-01-24 02:34:52 +00:00
parent 6876df1b2d
commit 3fc3ef8537

View File

@@ -1091,8 +1091,7 @@ struct monst *mon;
An attentive player will still notice that this is different from
an arrow just landing short of any target (no message in that case),
so will realize that there is a valid target here anyway. */
if (!cansee(bhitpos.x, bhitpos.y) ||
(mon->m_ap_type && mon->m_ap_type != M_AP_MONSTER))
if (!canseemon(mon) || (mon->m_ap_type && mon->m_ap_type != M_AP_MONSTER))
pline("%s misses.", The(missile));
else
miss(missile, mon);