diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-06 21:33:53 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-06 21:33:53 +0000 |
commit | 098a26cdea0f9d27b6077d449fe5946692247fd6 (patch) | |
tree | 47f495db306382c4abad1dc6ba1371dce6ee3dc1 | |
parent | e281018a4712cc89f07b7cc24f70b7c0afbe21a6 (diff) | |
download | crawl-ref-098a26cdea0f9d27b6077d449fe5946692247fd6.tar.gz crawl-ref-098a26cdea0f9d27b6077d449fe5946692247fd6.zip |
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
-rw-r--r-- | crawl-ref/source/monstuff.cc | 7 |
1 files 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, |