summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 07:44:30 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-16 07:44:30 +0000
commit9b9588edc81557e666fb9a341b6e17dcee65862f (patch)
tree72d00fa811202cce46782d896bc8205e76178c22 /crawl-ref/source/item_use.cc
parent01301efb3f166e5b9ce4d856b910f63493b56b08 (diff)
downloadcrawl-ref-9b9588edc81557e666fb9a341b6e17dcee65862f.tar.gz
crawl-ref-9b9588edc81557e666fb9a341b6e17dcee65862f.zip
1846578 /digging doesn't target monsters
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3670 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index eceed18495..f42d0fec0b 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -3406,6 +3406,7 @@ void zap_wand( int slot )
{
switch ( wand.sub_type )
{
+ case WAND_DIGGING:
case WAND_TELEPORTATION:
targ_mode = TARG_ANY;
break;
@@ -3415,7 +3416,7 @@ void zap_wand( int slot )
case WAND_INVISIBILITY:
targ_mode = TARG_FRIEND;
break;
-
+
default:
targ_mode = TARG_ENEMY;
break;