polearms and infravision

Allow hero to apply a polearm against a monster seen only by infravision.
Reported to the mailing list.
This commit is contained in:
cohrs
2003-05-11 05:08:58 +00:00
parent b8e61b8c47
commit 669c48dd04
2 changed files with 4 additions and 1 deletions

View File

@@ -2362,7 +2362,9 @@ use_pole (obj)
} else if (distu(cc.x, cc.y) < min_range) {
pline("Too close!");
return (res);
} else if (!cansee(cc.x, cc.y)) {
} else if (!cansee(cc.x, cc.y) &&
((mtmp = m_at(cc.x, cc.y)) == (struct monst *)0 ||
!canseemon(mtmp))) {
You(cant_see_spot);
return (res);
}