summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-30 21:39:03 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-30 21:39:03 +0000
commit2e0507ac62fefe90c1b6a15af5f971d2892d5534 (patch)
tree43d3636738e25ef2ded30bfcd7e388d966b71d97 /crawl-ref/source/beam.cc
parentc735656f5d7982da59f3e81a1f487b559ba7bcda (diff)
downloadcrawl-ref-2e0507ac62fefe90c1b6a15af5f971d2892d5534.tar.gz
crawl-ref-2e0507ac62fefe90c1b6a15af5f971d2892d5534.zip
Force beams of digging (wand or spell, known or unknown, also /random
effects) to ignore the endpoint target ('.') in favour of continuing until the end of the range. Unrestrict tridents for some more species. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6265 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index f3c6a68ea5..8c97298631 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -273,6 +273,8 @@ bool zapping(zap_type ztype, int power, bolt &pbolt, bool needs_tracer,
// XXX: Needs to check silenced at other location, too. {dlb}
noisy(25, you.x_pos, you.y_pos, "You hear a mighty clap of thunder!");
}
+ else if (ztype == ZAP_DIGGING)
+ pbolt.aimed_at_spot = false;
fire_beam(pbolt);