summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 0bed353d97..72d91b921b 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -3181,10 +3181,13 @@ int affect(bolt &beam, int x, int y, item_def *item)
if (mid != NON_MONSTER)
{
monsters *mon = &menv[mid];
+ const bool invisible = YOU_KILL(beam.thrower) && !you.can_see(mon);
// Monsters submerged in shallow water can be targeted by beams
// aimed at that spot.
if (mon->alive()
+ // Don't stop tracers on invisible monsters.
+ && (!invisible || !beam.is_tracer)
&& (!mon->submerged()
|| beam.aimed_at_spot && beam.target() == mon->pos()
&& grd(mon->pos()) == DNGN_SHALLOW_WATER))