Only print giant snatching boulder message when cansee pos.

Reported by a couple times directly to devteam, no bz.
This commit is contained in:
David Cohrs
2016-01-15 20:35:15 -08:00
parent 9b4d52397c
commit 4d2c82e482
+1
View File
@@ -1757,6 +1757,7 @@ int style;
if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != 0) { if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != 0) {
if (otyp == BOULDER && throws_rocks(mtmp->data)) { if (otyp == BOULDER && throws_rocks(mtmp->data)) {
if (rn2(3)) { if (rn2(3)) {
if (cansee(bhitpos.x, bhitpos.y))
pline("%s snatches the boulder.", Monnam(mtmp)); pline("%s snatches the boulder.", Monnam(mtmp));
singleobj->otrapped = 0; singleobj->otrapped = 0;
(void) mpickobj(mtmp, singleobj); (void) mpickobj(mtmp, singleobj);