summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-09 17:50:45 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-09 17:50:45 +0000
commitf24effa7e6806e80cca64a04a480e56b539c6999 (patch)
treeef5927676e181a4819a981ceb4b866d068e70ba1 /crawl-ref/source/files.cc
parented25e26edc8827c33dfb47bfe5940cf220863c12 (diff)
downloadcrawl-ref-f24effa7e6806e80cca64a04a480e56b539c6999.tar.gz
crawl-ref-f24effa7e6806e80cca64a04a480e56b539c6999.zip
* Monsters shout only when they notice you (i.e. you are in sight).
* Add a tile for out of range grids (lighter shade than out of sight). * Make Xom's repel stairs effect only happen during tension. * Add Z to keybind.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9755 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index db9b688ebf..e0fe414bde 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -973,7 +973,8 @@ static void _grab_followers()
if (fmenv->type == MONS_PLAYER_GHOST
&& fmenv->hit_points < fmenv->max_hit_points / 2)
{
- mpr("The ghost fades into the shadows.");
+ if (player_monster_visible(fmenv))
+ mpr("The ghost fades into the shadows.");
monster_teleport(fmenv, true);
}
}