From 098a26cdea0f9d27b6077d449fe5946692247fd6 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 6 Nov 2006 21:33:53 +0000 Subject: Fixed bug 1591105, invisible monsters can no longer 'gesture wildly.' git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@347 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index b1dfe5580e..0c8c4f86fa 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -3337,9 +3337,10 @@ static bool handle_spell( monsters *monster, bolt & beem ) // XXX: could be better, chosen to match the // ones in monspeak.cc... has the problem // that it doesn't suggest a vocal component. -- bwr - simple_monster_message( monster, - " gestures wildly.", - MSGCH_MONSTER_SPELL ); + if (player_monster_visible(monster)) + simple_monster_message( monster, + " gestures wildly.", + MSGCH_MONSTER_SPELL ); break; case 1: simple_monster_message( monster, -- cgit v1.2.3-54-g00ecf