diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-02 17:44:29 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-02 17:44:29 +0100 |
commit | b6fcb6516c139914febb40fd6549bfb0be0f1d8d (patch) | |
tree | 3966959817a31d5fc89f7144c434037be8686602 /crawl-ref/source/item_use.cc | |
parent | 2a673e4ca8d871c8f5b01056a9f19e06b65b7abc (diff) | |
download | crawl-ref-b6fcb6516c139914febb40fd6549bfb0be0f1d8d.tar.gz crawl-ref-b6fcb6516c139914febb40fd6549bfb0be0f1d8d.zip |
Give player-zapped wand bolts the "friendly" attitude. Fixes bug 0000244
(Xom being amused by the player zapping beneficial wands at himself.)
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 9cd2d4fd2b..0da1d40a68 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4288,7 +4288,8 @@ void zap_wand(int slot) if (wand.sub_type == WAND_RANDOM_EFFECTS) beam.effect_known = false; - beam.source = you.pos(); + beam.source = you.pos(); + beam.attitude = ATT_FRIENDLY; beam.set_target(zap_wand); bool aimed_at_self = (beam.target == you.pos()); |