summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-09 20:28:33 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-09 20:28:33 +0000
commit61bdb2932105d91f430a0e067a5022732f33355a (patch)
tree6a591291ddb2e6fb4c95932fd073a3e240814385 /crawl-ref/source/item_use.cc
parent7aad8aac57d72150fcdfc133f18462675467b729 (diff)
downloadcrawl-ref-61bdb2932105d91f430a0e067a5022732f33355a.tar.gz
crawl-ref-61bdb2932105d91f430a0e067a5022732f33355a.zip
Targetting changes:
1. when the current target is you, this is now shown 2. wraparound includes you for TARG_ANY and TARG_FRIEND (Unfortunately I can't get this to work for '-', so it only works in one direction.) 3. "... looks unstable" message moved to mstuff2 for consistency with the reversal message 4. teleportation is now of type TARG_ANY git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1986 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index b15d66e35b..5d7a49a509 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2764,9 +2764,13 @@ void zap_wand(void)
const bool dangerous = player_in_a_dangerous_place();
if (alreadyknown)
{
- if (wand.sub_type == WAND_HASTING
- || wand.sub_type == WAND_HEALING
- || wand.sub_type == WAND_INVISIBILITY)
+ if (wand.sub_type == WAND_TELEPORTATION)
+ {
+ targ_mode = TARG_ANY;
+ }
+ else if (wand.sub_type == WAND_HASTING
+ || wand.sub_type == WAND_HEALING
+ || wand.sub_type == WAND_INVISIBILITY)
{
targ_mode = TARG_FRIEND;
}