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