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.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index efb3e63419..d8c7fafd58 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -5333,6 +5333,15 @@ int explosion( bolt &beam, bool hole_in_the_middle,
// beam is now an explosion; set in_explosion_phase
beam.in_explosion_phase = true;
+ if (is_sanctuary(beam.target_x, beam.target_y))
+ {
+ if (!beam.is_tracer && see_grid(beam.target()) && !beam.name.empty() )
+ mprf(MSGCH_GOD, "By Zin's power, the %s is contained.",
+ beam.name.c_str());
+
+ return (-1);
+ }
+
#if DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS,
"explosion at (%d, %d) : t=%d c=%d f=%d hit=%d dam=%dd%d",