diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-19 22:42:00 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-20 17:29:37 +0100 |
commit | 7db74e3bb5838dc8690e8660a138f69f2895ba86 (patch) | |
tree | 8bf5c2daaf52754bf8ec7784c69054143a6b6619 /crawl-ref/source | |
parent | 38abbd0d71c61f16c6d13a4107c61fb639a00f92 (diff) | |
download | crawl-ref-7db74e3bb5838dc8690e8660a138f69f2895ba86.tar.gz crawl-ref-7db74e3bb5838dc8690e8660a138f69f2895ba86.zip |
Fix visibility for hitting a wall just out of LOS.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/mon-project.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-project.cc b/crawl-ref/source/mon-project.cc index bc3e385e42..4a080a43fd 100644 --- a/crawl-ref/source/mon-project.cc +++ b/crawl-ref/source/mon-project.cc @@ -172,8 +172,9 @@ bool iood_act(monsters &mon, bool no_trail) { if (cell_is_solid(pos)) { - simple_monster_message(&mon, (" hits " + feature_description(pos, - false, DESC_NOCAP_A)).c_str()); + if (you.see_cell(pos)) + mprf("%s hits %s", mon.name(DESC_CAP_THE, true).c_str(), + feature_description(pos, false, DESC_NOCAP_A).c_str()); } if (victim && mons_is_projectile(victim->id())) { |