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

View File

@@ -1757,7 +1757,8 @@ int style;
if ((mtmp = m_at(bhitpos.x, bhitpos.y)) != 0) {
if (otyp == BOULDER && throws_rocks(mtmp->data)) {
if (rn2(3)) {
pline("%s snatches the boulder.", Monnam(mtmp));
if (cansee(bhitpos.x, bhitpos.y))
pline("%s snatches the boulder.", Monnam(mtmp));
singleobj->otrapped = 0;
(void) mpickobj(mtmp, singleobj);
used_up = TRUE;